[POWERPC] Constify of_platform_driver name
authorStephen Rothwell <sfr@canb.auug.org.au>
Sat, 21 Jul 2007 14:23:03 +0000 (00:23 +1000)
committerPaul Mackerras <paulus@samba.org>
Sun, 22 Jul 2007 11:30:59 +0000 (21:30 +1000)
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
drivers/pcmcia/m8xx_pcmcia.c
include/linux/of_platform.h

index 3c45142c40b2f0f8421cf488440ada36dd3b67f2..b01985498460f926d0f6e920d900b10fb1b59cb8 100644 (file)
@@ -1316,7 +1316,7 @@ static struct of_device_id m8xx_pcmcia_match[] = {
 MODULE_DEVICE_TABLE(of, m8xx_pcmcia_match);
 
 static struct of_platform_driver m8xx_pcmcia_driver = {
-       .name = (char *)driver_name,
+       .name = driver_name,
        .match_table = m8xx_pcmcia_match,
        .probe = m8xx_probe,
        .remove = m8xx_remove,
index 5fd44e63fb2671d34df4f9e889569d8b1dde0ff5..22c3837784b297770c07902eb9c2116b9370c056 100644 (file)
@@ -31,7 +31,7 @@ extern struct bus_type of_platform_bus_type;
  */
 struct of_platform_driver
 {
-       char                    *name;
+       const char              *name;
        struct of_device_id     *match_table;
        struct module           *owner;