aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ne3210.c
diff options
context:
space:
mode:
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>2011-04-18 09:31:20 -0400
committerDavid S. Miller <davem@davemloft.net>2011-04-19 01:59:04 -0400
commite5cb966c0838e4da43a3b0751bdcac7fe719f7b4 (patch)
treef12e281104fd5dddad3dad15cf6df6151427ec6e /drivers/net/ne3210.c
parent2b7b431858c284b62c18baaf2cea571be2797d5a (diff)
net: fix section mismatches
Fix build warnings like the following: WARNING: drivers/net/built-in.o(.data+0x12434): Section mismatch in reference from the variable madgemc_driver to the variable .init.data:madgemc_adapter_ids And add some consts to EISA device ID tables along the way. Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ne3210.c')
-rw-r--r--drivers/net/ne3210.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/drivers/net/ne3210.c b/drivers/net/ne3210.c
index 243ed2aee88e..e8984b0ca521 100644
--- a/drivers/net/ne3210.c
+++ b/drivers/net/ne3210.c
@@ -80,17 +80,20 @@ static void ne3210_block_output(struct net_device *dev, int count, const unsigne
80 80
81#define NE3210_DEBUG 0x0 81#define NE3210_DEBUG 0x0
82 82
83static unsigned char irq_map[] __initdata = {15, 12, 11, 10, 9, 7, 5, 3}; 83static const unsigned char irq_map[] __devinitconst =
84static unsigned int shmem_map[] __initdata = {0xff0, 0xfe0, 0xfff0, 0xd8, 0xffe0, 0xffc0, 0xd0, 0x0}; 84 { 15, 12, 11, 10, 9, 7, 5, 3 };
85static const char *ifmap[] __initdata = {"UTP", "?", "BNC", "AUI"}; 85static const unsigned int shmem_map[] __devinitconst =
86static int ifmap_val[] __initdata = { 86 { 0xff0, 0xfe0, 0xfff0, 0xd8, 0xffe0, 0xffc0, 0xd0, 0x0 };
87static const char *const ifmap[] __devinitconst =
88 { "UTP", "?", "BNC", "AUI" };
89static const int ifmap_val[] __devinitconst = {
87 IF_PORT_10BASET, 90 IF_PORT_10BASET,
88 IF_PORT_UNKNOWN, 91 IF_PORT_UNKNOWN,
89 IF_PORT_10BASE2, 92 IF_PORT_10BASE2,
90 IF_PORT_AUI, 93 IF_PORT_AUI,
91}; 94};
92 95
93static int __init ne3210_eisa_probe (struct device *device) 96static int __devinit ne3210_eisa_probe (struct device *device)
94{ 97{
95 unsigned long ioaddr, phys_mem; 98 unsigned long ioaddr, phys_mem;
96 int i, retval, port_index; 99 int i, retval, port_index;
@@ -313,7 +316,7 @@ static void ne3210_block_output(struct net_device *dev, int count,
313 memcpy_toio(shmem, buf, count); 316 memcpy_toio(shmem, buf, count);
314} 317}
315 318
316static struct eisa_device_id ne3210_ids[] = { 319static const struct eisa_device_id ne3210_ids[] __devinitconst = {
317 { "EGL0101" }, 320 { "EGL0101" },
318 { "NVL1801" }, 321 { "NVL1801" },
319 { "" }, 322 { "" },