diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-02-26 10:19:24 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-26 22:21:54 -0800 |
commit | 86de79b6d058df87fdf025c6c484b37340fb0205 (patch) | |
tree | f35f9bd97ef362e7c11e67b79293815a49e6822f /drivers | |
parent | 81b700b1ed496cf21e7ed5991c80dfe5e6723266 (diff) | |
download | op-kernel-dev-86de79b6d058df87fdf025c6c484b37340fb0205.zip op-kernel-dev-86de79b6d058df87fdf025c6c484b37340fb0205.tar.gz |
3c59x: get rid of non-const printk warnings
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/3c59x.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/3c59x.c b/drivers/net/3c59x.c index b2563d3..c566984 100644 --- a/drivers/net/3c59x.c +++ b/drivers/net/3c59x.c @@ -102,8 +102,8 @@ static int vortex_debug = 1; #include <linux/delay.h> -static char version[] __devinitdata = -DRV_NAME ": Donald Becker and others.\n"; +static const char version[] __devinitconst = + DRV_NAME ": Donald Becker and others.\n"; MODULE_AUTHOR("Donald Becker <becker@scyld.com>"); MODULE_DESCRIPTION("3Com 3c59x/3c9xx ethernet driver "); @@ -2908,7 +2908,7 @@ static void vortex_get_drvinfo(struct net_device *dev, strcpy(info->bus_info, pci_name(VORTEX_PCI(vp))); } else { if (VORTEX_EISA(vp)) - sprintf(info->bus_info, dev_name(vp->gendev)); + strcpy(info->bus_info, dev_name(vp->gendev)); else sprintf(info->bus_info, "EISA 0x%lx %d", dev->base_addr, dev->irq); |