Commit 9b723aaa authored by Russell King's avatar Russell King Committed by Greg Kroah-Hartman

[PATCH] driver core: Separate platform device name from platform device number

Separate platform device name from platform device number such that
names ending with numbers aren't confusing.
Signed-off-by: default avatarRussell King <rmk@arm.linux.org.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent d72038c2
......@@ -131,7 +131,7 @@ int platform_device_register(struct platform_device * pdev)
pdev->dev.bus = &platform_bus_type;
if (pdev->id != -1)
snprintf(pdev->dev.bus_id, BUS_ID_SIZE, "%s%u", pdev->name, pdev->id);
snprintf(pdev->dev.bus_id, BUS_ID_SIZE, "%s.%u", pdev->name, pdev->id);
else
strlcpy(pdev->dev.bus_id, pdev->name, BUS_ID_SIZE);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment