projects/linux·commit c63e0783

Driver core: "platform_driver_probe() can save codespace": save codespace

c63e0783 · Andrew Morton <[email protected]> · 2006-12-04 14:56:36 -08:00

This function can be __init

Cc: David Brownell <[email protected]>
Cc: Dmitry Torokhov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Commit
c63e07834bb12910bea41da15b8902150f5217c2
Parents
29a7f3ad

Changes

1 files changed · +1 −1

FileStatusAddDelContent
drivers/base/platform.cmodified+1−1View file

drivers/base/platform.c

View file
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;