diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2008-01-11 09:24:53 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-01-25 07:40:43 +0300 |
commit | ae72cddb2338bc36b991674a56a7bf70ae104d9e (patch) | |
tree | 6054d3064d8d24f8919a9f226100a0b37862ece0 /drivers | |
parent | 92b421416f8194aec87b1439487b5544e9ac8187 (diff) | |
download | linux-ae72cddb2338bc36b991674a56a7bf70ae104d9e.tar.xz |
Driver Core: constify the name passed to platform_device_register_simple
This name is just passed to platform_device_alloc which has its parameter
declared const.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-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 bdd59e8358f0..48d5db4f92ee 100644 --- a/drivers/base/platform.c +++ b/drivers/base/platform.c @@ -360,7 +360,7 @@ EXPORT_SYMBOL_GPL(platform_device_unregister); * the Linux driver model. In particular, when such drivers are built * as modules, they can't be "hotplugged". */ -struct platform_device *platform_device_register_simple(char *name, int id, +struct platform_device *platform_device_register_simple(const char *name, int id, struct resource *res, unsigned int num) { struct platform_device *pdev; |