]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Driver Core: constify the name passed to platform_device_register_simple
authorStephen Rothwell <sfr@canb.auug.org.au>
Fri, 11 Jan 2008 06:24:53 +0000 (17:24 +1100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 25 Jan 2008 04:40:43 +0000 (20:40 -0800)
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>
drivers/base/platform.c
include/linux/platform_device.h

index bdd59e8358f047f29ca229a93d607ec2e2c3b0c2..48d5db4f92ee1a3d30510d806102e15074f62bf6 100644 (file)
@@ -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;
index e80804316cdb2e9c78c3ec15ab26435e056bd6bb..3261681c82a45bb4ec68551bd6bb40bbef1935e3 100644 (file)
@@ -35,7 +35,7 @@ extern struct resource *platform_get_resource_byname(struct platform_device *, u
 extern int platform_get_irq_byname(struct platform_device *, char *);
 extern int platform_add_devices(struct platform_device **, int);
 
-extern struct platform_device *platform_device_register_simple(char *, int id,
+extern struct platform_device *platform_device_register_simple(const char *, int id,
                                        struct resource *, unsigned int);
 
 extern struct platform_device *platform_device_alloc(const char *name, int id);