diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-06-21 16:11:45 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-05 13:53:34 -0700 |
commit | 737a3bb9416ce2a7c7a4170852473a4fcc9c67e8 (patch) | |
tree | 0d4ede010d0f998ac4fdd7d2558b2481c8bf67ea /drivers/base/platform.c | |
parent | 44f28bdea09415d40b4d73a7668db5961362ec53 (diff) | |
download | linux-737a3bb9416ce2a7c7a4170852473a4fcc9c67e8.tar.gz linux-737a3bb9416ce2a7c7a4170852473a4fcc9c67e8.tar.bz2 linux-737a3bb9416ce2a7c7a4170852473a4fcc9c67e8.zip |
Driver core: move platform device creation helpers to .init.text (if MODULE=n)
Platform devices should only be called by init code, so it should be
possible to move creation helpers to .init.text -- at least if modules
are disabled.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
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 ffcfd73fe8a6..1bb8faaa443f 100644 --- a/drivers/base/platform.c +++ b/drivers/base/platform.c @@ -357,7 +357,7 @@ EXPORT_SYMBOL_GPL(platform_device_unregister); * * Returns &struct platform_device pointer on success, or ERR_PTR() on error. */ -struct platform_device *platform_device_register_resndata( +struct platform_device *__init_or_module platform_device_register_resndata( struct device *parent, const char *name, int id, const struct resource *res, unsigned int num, |