Messages in this thread Patch in this message |  | | | Subject | [PATCH] driver core: Separate platform device name from platform device number | | Date | Wed, 9 Mar 2005 16:34:39 -0800 | | From | Greg KH <> |
| |
ChangeSet 1.2038, 2005/03/09 09:32:19-08:00, rmk+lkml@arm.linux.org.uk
[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: Russell King <rmk@arm.linux.org.uk> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/base/platform.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)
diff -Nru a/drivers/base/platform.c b/drivers/base/platform.c --- a/drivers/base/platform.c 2005-03-09 16:30:02 -08:00 +++ b/drivers/base/platform.c 2005-03-09 16:30:02 -08:00 @@ -131,7 +131,7 @@ 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); - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |