Patchwork [03/15] 3c59x: get rid of non-const printk warnings

login
register
mail settings
Submitter stephen hemminger
Date Feb. 26, 2009, 8:19 p.m.
Message ID <20090226201949.304637267@vyatta.com>
Download mbox | patch
Permalink /patch/23789/
State Accepted
Delegated to: David Miller
Headers show

Comments

stephen hemminger - Feb. 26, 2009, 8:19 p.m.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>

Patch

--- a/drivers/net/3c59x.c	2009-02-26 12:06:07.000000000 -0800
+++ b/drivers/net/3c59x.c	2009-02-26 12:12:27.000000000 -0800
@@ -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 ne
 		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);