aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/platform.c
diff options
context:
space:
mode:
authorFabio Porcedda <fabio.porcedda@gmail.com>2013-03-26 05:35:15 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-29 12:10:55 -0400
commit647c86d0a2d1131dd9412361958d8e0aae949523 (patch)
tree46c8f627447e39eefc6ac425309926691eb4e6dd /drivers/base/platform.c
parent3db3c62584fbafee52a068035cc4c57e7b921acf (diff)
driver core: warn that platform_driver_probe can not use deferred probing
Add documentation that platform_driver_probe() is incompatible with deferred probing. Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/platform.c')
-rw-r--r--drivers/base/platform.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/base/platform.c b/drivers/base/platform.c
index c0b8df38402b..ef2afb1e33e6 100644
--- a/drivers/base/platform.c
+++ b/drivers/base/platform.c
@@ -555,7 +555,8 @@ EXPORT_SYMBOL_GPL(platform_driver_unregister);
555/** 555/**
556 * platform_driver_probe - register driver for non-hotpluggable device 556 * platform_driver_probe - register driver for non-hotpluggable device
557 * @drv: platform driver structure 557 * @drv: platform driver structure
558 * @probe: the driver probe routine, probably from an __init section 558 * @probe: the driver probe routine, probably from an __init section,
559 * must not return -EPROBE_DEFER.
559 * 560 *
560 * Use this instead of platform_driver_register() when you know the device 561 * Use this instead of platform_driver_register() when you know the device
561 * is not hotpluggable and has already been registered, and you want to 562 * is not hotpluggable and has already been registered, and you want to
@@ -566,6 +567,9 @@ EXPORT_SYMBOL_GPL(platform_driver_unregister);
566 * into system-on-chip processors, where the controller devices have been 567 * into system-on-chip processors, where the controller devices have been
567 * configured as part of board setup. 568 * configured as part of board setup.
568 * 569 *
570 * This is incompatible with deferred probing so probe() must not
571 * return -EPROBE_DEFER.
572 *
569 * Returns zero if the driver registered and bound to a device, else returns 573 * Returns zero if the driver registered and bound to a device, else returns
570 * a negative error code and with the driver not registered. 574 * a negative error code and with the driver not registered.
571 */ 575 */