From: Russell King <[email protected]> platform_device_add() should be using device_add() rather than device_register() - any platform device passed to platform_device_add() should have already been initialised, either by platform_device_alloc() or platform_device_register(). Signed-off-by: Russell King <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]> --- drivers/base/platform.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/base/platform.c b/drivers/base/platform.c index f807197..2b8755d 100644 --- a/drivers/base/platform.c +++ b/drivers/base/platform.c @@ -275,7 +275,7 @@ int platform_device_add(struct platform_ pr_debug("Registering platform device '%s'. Parent at %s\n", pdev->dev.bus_id, pdev->dev.parent->bus_id); - ret = device_register(&pdev->dev); + ret = device_add(&pdev->dev); if (ret == 0) return ret; -- 1.4.0 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- References:
- [GIT PATCH] Driver Core patches for 2.6.17
- From: Greg KH <[email protected]>
- [PATCH 1/22] [PATCH] kobject: make people pay attention to kobject_add errors
- From: Greg KH <[email protected]>
- [PATCH 2/22] [PATCH] Add kernel<->userspace ABI stability documentation
- From: Greg KH <[email protected]>
- [PATCH 3/22] [PATCH] CCISS: add device symlink to the block cciss block devices in sysfs
- From: Greg KH <[email protected]>
- [PATCH 4/22] [PATCH] Driver core: bus device event delay
- From: Greg KH <[email protected]>
- [PATCH 5/22] [PATCH] TTY: return class device pointer from tty_register_device()
- From: Greg KH <[email protected]>
- [PATCH 6/22] [PATCH] i4l gigaset: move sysfs entry to tty class device
- From: Greg KH <[email protected]>
- [PATCH 7/22] [PATCH] Driver core: class_device_add needs error checks
- From: Greg KH <[email protected]>
- [PATCH 8/22] [PATCH] Driver Core: CONFIG_DEBUG_PM covers drivers/base/power too
- From: Greg KH <[email protected]>
- [PATCH 9/22] [PATCH] platform_bus learns about modalias
- From: Greg KH <[email protected]>
- [PATCH 10/22] [PATCH] Driver Core: remove unused exports
- From: Greg KH <[email protected]>
- [PATCH 11/22] [PATCH] Driver Core: Allow sysdev_class have attributes
- From: Greg KH <[email protected]>
- [GIT PATCH] Driver Core patches for 2.6.17
- Prev by Date: [PATCH 11/22] [PATCH] Driver Core: Allow sysdev_class have attributes
- Next by Date: [PATCH 13/22] [PATCH] Driver Core: Add /sys/hypervisor when needed
- Previous by thread: [PATCH 11/22] [PATCH] Driver Core: Allow sysdev_class have attributes
- Next by thread: [PATCH 13/22] [PATCH] Driver Core: Add /sys/hypervisor when needed
- Index(es):