mirror of
https://github.com/torvalds/linux.git
synced 2026-11-25 07:52:34 +00:00
We use the name provided by SES to name objects. An empty name is legal in SES but causes problems in our generic device hierarchy. Fix this by falling back to a number if the name is either NULL or empty. Also fix a secondary bug spotted in that dev_set_name(dev, name) uses a string format and so would go wrong if name contained a '%'. Signed-off-by: Yinghai Lu <[email protected]> Signed-off-by: James Bottomley <[email protected]>