From: Andrew Morton Date: Mon, 4 Dec 2006 22:56:36 +0000 (-0800) Subject: Driver core: "platform_driver_probe() can save codespace": save codespace X-Git-Tag: v2.6.20-rc1~19 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c63e07834bb12910bea41da15b8902150f5217c2;p=linux-2.6-omap-h63xx.git Driver core: "platform_driver_probe() can save codespace": save codespace This function can be __init Cc: David Brownell Cc: Dmitry Torokhov Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/base/platform.c b/drivers/base/platform.c index d1df4a08792..0338289f9b5 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;