* [PATCH] constify of_platform_driver name
@ 2007-07-21 14:23 Stephen Rothwell
2007-07-22 2:10 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Rothwell @ 2007-07-21 14:23 UTC (permalink / raw)
To: Andrew Morton; +Cc: LKML, wli, ppc-dev, paulus, sparclinux, David S. Miller
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
drivers/pcmcia/m8xx_pcmcia.c | 2 +-
include/linux/of_platform.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Built for PowerPC allmodconfig and ppc64_defconfig, and for Sparc and
Sparc64 defconfig.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
diff --git a/drivers/pcmcia/m8xx_pcmcia.c b/drivers/pcmcia/m8xx_pcmcia.c
index 3c45142..b019854 100644
--- a/drivers/pcmcia/m8xx_pcmcia.c
+++ b/drivers/pcmcia/m8xx_pcmcia.c
@@ -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,
diff --git a/include/linux/of_platform.h b/include/linux/of_platform.h
index 5fd44e6..22c3837 100644
--- a/include/linux/of_platform.h
+++ b/include/linux/of_platform.h
@@ -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;
--
1.5.2.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] constify of_platform_driver name
2007-07-21 14:23 [PATCH] constify of_platform_driver name Stephen Rothwell
@ 2007-07-22 2:10 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2007-07-22 2:10 UTC (permalink / raw)
To: sfr; +Cc: linux-kernel, wli, linuxppc-dev, paulus, sparclinux, akpm
From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Sun, 22 Jul 2007 00:23:03 +1000
>
> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
> ---
> drivers/pcmcia/m8xx_pcmcia.c | 2 +-
> include/linux/of_platform.h | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> Built for PowerPC allmodconfig and ppc64_defconfig, and for Sparc and
> Sparc64 defconfig.
Acked-by: David S. Miller <davem@davemloft.net>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-22 2:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-21 14:23 [PATCH] constify of_platform_driver name Stephen Rothwell
2007-07-22 2:10 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).