diff options
author | Andrew Morton <akpm@osdl.org> | 2006-12-04 22:56:36 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-12-13 23:38:45 (GMT) |
commit | c63e07834bb12910bea41da15b8902150f5217c2 (patch) | |
tree | c26d894b5039ed4ab138a27bd5c32e587ab5f785 /drivers/base/platform.c | |
parent | 29a7f3ada7fea5510504c5359c3f70d109aeb055 (diff) | |
download | linux-fsl-qoriq-c63e07834bb12910bea41da15b8902150f5217c2.tar.xz |
Driver core: "platform_driver_probe() can save codespace": save codespace
This function can be __init
Cc: David Brownell <dbrownell@users.sourceforge.net>
Cc: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/base/platform.c')
-rw-r--r-- | 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 d1df4a0..0338289 100644 --- a/drivers/base/platform.c +++ b/drivers/base/platform.c @@ -473,7 +473,7 @@ EXPORT_SYMBOL_GPL(platform_driver_unregister); * Returns zero if the driver registered and bound to a device, else returns * a negative error code and with the driver not registered. */ -int platform_driver_probe(struct platform_driver *drv, +int __init_or_module platform_driver_probe(struct platform_driver *drv, int (*probe)(struct platform_device *)) { int retval, code; |