aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2017-08-21 16:05:51 -0400
committerHelge Deller <deller@gmx.de>2017-08-22 10:34:37 -0400
commit117c02394a29768573c4c4ea86b61d83970c8391 (patch)
tree81a2121c7299451b0b8fbb7932c764197ecf05be
parentc1bebd070008e5cca8ab6a0d183068b9f51f6f50 (diff)
parisc/net/lasi_82596: Fix section mismatches
Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r--drivers/net/ethernet/i825xx/lasi_82596.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/ethernet/i825xx/lasi_82596.c b/drivers/net/ethernet/i825xx/lasi_82596.c
index d787fdd5db7b..aa22e108f09b 100644
--- a/drivers/net/ethernet/i825xx/lasi_82596.c
+++ b/drivers/net/ethernet/i825xx/lasi_82596.c
@@ -149,7 +149,7 @@ static void mpu_port(struct net_device *dev, int c, dma_addr_t x)
149 149
150#define LAN_PROM_ADDR 0xF0810000 150#define LAN_PROM_ADDR 0xF0810000
151 151
152static int 152static int __init
153lan_init_chip(struct parisc_device *dev) 153lan_init_chip(struct parisc_device *dev)
154{ 154{
155 struct net_device *netdevice; 155 struct net_device *netdevice;
@@ -194,7 +194,7 @@ lan_init_chip(struct parisc_device *dev)
194 return retval; 194 return retval;
195} 195}
196 196
197static int lan_remove_chip(struct parisc_device *pdev) 197static int __exit lan_remove_chip(struct parisc_device *pdev)
198{ 198{
199 struct net_device *dev = parisc_get_drvdata(pdev); 199 struct net_device *dev = parisc_get_drvdata(pdev);
200 struct i596_private *lp = netdev_priv(dev); 200 struct i596_private *lp = netdev_priv(dev);
@@ -206,7 +206,7 @@ static int lan_remove_chip(struct parisc_device *pdev)
206 return 0; 206 return 0;
207} 207}
208 208
209static struct parisc_device_id lan_tbl[] = { 209static const struct parisc_device_id lan_tbl[] __initconst = {
210 { HPHW_FIO, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x0008a }, 210 { HPHW_FIO, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x0008a },
211 { HPHW_FIO, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x00072 }, 211 { HPHW_FIO, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x00072 },
212 { 0, } 212 { 0, }
@@ -214,11 +214,11 @@ static struct parisc_device_id lan_tbl[] = {
214 214
215MODULE_DEVICE_TABLE(parisc, lan_tbl); 215MODULE_DEVICE_TABLE(parisc, lan_tbl);
216 216
217static struct parisc_driver lan_driver = { 217static struct parisc_driver lan_driver __refdata = {
218 .name = "lasi_82596", 218 .name = "lasi_82596",
219 .id_table = lan_tbl, 219 .id_table = lan_tbl,
220 .probe = lan_init_chip, 220 .probe = lan_init_chip,
221 .remove = lan_remove_chip, 221 .remove = __exit_p(lan_remove_chip),
222}; 222};
223 223
224static int lasi_82596_init(void) 224static int lasi_82596_init(void)