Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=c63e07834bb12910bea41da15b8902150f5217c2 Commit: c63e07834bb12910bea41da15b8902150f5217c2 Parent: 29a7f3ada7fea5510504c5359c3f70d109aeb055 Author: Andrew Morton <[EMAIL PROTECTED]> AuthorDate: Mon Dec 4 14:56:36 2006 -0800 Committer: Greg Kroah-Hartman <[EMAIL PROTECTED]> CommitDate: Wed Dec 13 15:38:45 2006 -0800
Driver core: "platform_driver_probe() can save codespace": save codespace 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]> --- 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; - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html