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>


authored by Andrew Morton and committed by Greg Kroah-Hartman c63e0783 29a7f3ad

+1 -1
+1 -1
drivers/base/platform.c
··· 473 473 * Returns zero if the driver registered and bound to a device, else returns 474 474 * a negative error code and with the driver not registered. 475 475 */ 476 - int platform_driver_probe(struct platform_driver *drv, 476 + int __init_or_module platform_driver_probe(struct platform_driver *drv, 477 477 int (*probe)(struct platform_device *)) 478 478 { 479 479 int retval, code;