diff options
author | Paul Bolle <pebolle@tiscali.nl> | 2013-03-28 20:51:30 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-29 15:40:24 -0400 |
commit | c23343cfc91896c3664f106d254af1231da2da47 (patch) | |
tree | 64fcc2c575ed04bc1f26243367c0871e52430dc0 | |
parent | a3f109bd793dfe5c611220ca5ab6c72f1aed479e (diff) |
cirrus: cs89x0: remove two obsolete Kconfig macros
The CONFIG_ARCH_IXDP2X01 and CONFIG_MACH_IXDP2351 Kconfig macros are
unused since the ixp23xx and ixp2000 platforms were removed in v3.5. So
remove the last code still depending on these macros. And since
CS89x0_NONISA_IRQ was only set if either of these two macros was defined
we can also remove that macro and the code depending on it.
Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/cirrus/cs89x0.c | 54 |
1 files changed, 1 insertions, 53 deletions
diff --git a/drivers/net/ethernet/cirrus/cs89x0.c b/drivers/net/ethernet/cirrus/cs89x0.c index aaa0499aa19c..19f642a45f40 100644 --- a/drivers/net/ethernet/cirrus/cs89x0.c +++ b/drivers/net/ethernet/cirrus/cs89x0.c | |||
@@ -101,23 +101,6 @@ static char version[] __initdata = | |||
101 | * them to system IRQ numbers. This mapping is card specific and is set to | 101 | * them to system IRQ numbers. This mapping is card specific and is set to |
102 | * the configuration of the Cirrus Eval board for this chip. | 102 | * the configuration of the Cirrus Eval board for this chip. |
103 | */ | 103 | */ |
104 | #if defined(CONFIG_MACH_IXDP2351) | ||
105 | #define CS89x0_NONISA_IRQ | ||
106 | static unsigned int netcard_portlist[] __used __initdata = { | ||
107 | IXDP2351_VIRT_CS8900_BASE, 0 | ||
108 | }; | ||
109 | static unsigned int cs8900_irq_map[] = { | ||
110 | IRQ_IXDP2351_CS8900, 0, 0, 0 | ||
111 | }; | ||
112 | #elif defined(CONFIG_ARCH_IXDP2X01) | ||
113 | #define CS89x0_NONISA_IRQ | ||
114 | static unsigned int netcard_portlist[] __used __initdata = { | ||
115 | IXDP2X01_CS8900_VIRT_BASE, 0 | ||
116 | }; | ||
117 | static unsigned int cs8900_irq_map[] = { | ||
118 | IRQ_IXDP2X01_CS8900, 0, 0, 0 | ||
119 | }; | ||
120 | #else | ||
121 | #ifndef CONFIG_CS89x0_PLATFORM | 104 | #ifndef CONFIG_CS89x0_PLATFORM |
122 | static unsigned int netcard_portlist[] __used __initdata = { | 105 | static unsigned int netcard_portlist[] __used __initdata = { |
123 | 0x300, 0x320, 0x340, 0x360, 0x200, 0x220, 0x240, | 106 | 0x300, 0x320, 0x340, 0x360, 0x200, 0x220, 0x240, |
@@ -127,7 +110,6 @@ static unsigned int cs8900_irq_map[] = { | |||
127 | 10, 11, 12, 5 | 110 | 10, 11, 12, 5 |
128 | }; | 111 | }; |
129 | #endif | 112 | #endif |
130 | #endif | ||
131 | 113 | ||
132 | #if DEBUGGING | 114 | #if DEBUGGING |
133 | static unsigned int net_debug = DEBUGGING; | 115 | static unsigned int net_debug = DEBUGGING; |
@@ -210,32 +192,6 @@ static int __init media_fn(char *str) | |||
210 | __setup("cs89x0_media=", media_fn); | 192 | __setup("cs89x0_media=", media_fn); |
211 | #endif | 193 | #endif |
212 | 194 | ||
213 | #if defined(CONFIG_MACH_IXDP2351) | ||
214 | static u16 | ||
215 | readword(unsigned long base_addr, int portno) | ||
216 | { | ||
217 | return __raw_readw(base_addr + (portno << 1)); | ||
218 | } | ||
219 | |||
220 | static void | ||
221 | writeword(unsigned long base_addr, int portno, u16 value) | ||
222 | { | ||
223 | __raw_writew(value, base_addr + (portno << 1)); | ||
224 | } | ||
225 | #elif defined(CONFIG_ARCH_IXDP2X01) | ||
226 | static u16 | ||
227 | readword(unsigned long base_addr, int portno) | ||
228 | { | ||
229 | return __raw_readl(base_addr + (portno << 1)); | ||
230 | } | ||
231 | |||
232 | static void | ||
233 | writeword(unsigned long base_addr, int portno, u16 value) | ||
234 | { | ||
235 | __raw_writel(value, base_addr + (portno << 1)); | ||
236 | } | ||
237 | #endif | ||
238 | |||
239 | static void readwords(struct net_local *lp, int portno, void *buf, int length) | 195 | static void readwords(struct net_local *lp, int portno, void *buf, int length) |
240 | { | 196 | { |
241 | u8 *buf8 = (u8 *)buf; | 197 | u8 *buf8 = (u8 *)buf; |
@@ -902,7 +858,7 @@ net_open(struct net_device *dev) | |||
902 | goto bad_out; | 858 | goto bad_out; |
903 | } | 859 | } |
904 | } else { | 860 | } else { |
905 | #if !defined(CS89x0_NONISA_IRQ) && !defined(CONFIG_CS89x0_PLATFORM) | 861 | #if !defined(CONFIG_CS89x0_PLATFORM) |
906 | if (((1 << dev->irq) & lp->irq_map) == 0) { | 862 | if (((1 << dev->irq) & lp->irq_map) == 0) { |
907 | pr_err("%s: IRQ %d is not in our map of allowable IRQs, which is %x\n", | 863 | pr_err("%s: IRQ %d is not in our map of allowable IRQs, which is %x\n", |
908 | dev->name, dev->irq, lp->irq_map); | 864 | dev->name, dev->irq, lp->irq_map); |
@@ -1315,9 +1271,7 @@ static const struct net_device_ops net_ops = { | |||
1315 | static void __init reset_chip(struct net_device *dev) | 1271 | static void __init reset_chip(struct net_device *dev) |
1316 | { | 1272 | { |
1317 | #if !defined(CONFIG_MACH_MX31ADS) | 1273 | #if !defined(CONFIG_MACH_MX31ADS) |
1318 | #if !defined(CS89x0_NONISA_IRQ) | ||
1319 | struct net_local *lp = netdev_priv(dev); | 1274 | struct net_local *lp = netdev_priv(dev); |
1320 | #endif /* CS89x0_NONISA_IRQ */ | ||
1321 | int reset_start_time; | 1275 | int reset_start_time; |
1322 | 1276 | ||
1323 | writereg(dev, PP_SelfCTL, readreg(dev, PP_SelfCTL) | POWER_ON_RESET); | 1277 | writereg(dev, PP_SelfCTL, readreg(dev, PP_SelfCTL) | POWER_ON_RESET); |
@@ -1325,7 +1279,6 @@ static void __init reset_chip(struct net_device *dev) | |||
1325 | /* wait 30 ms */ | 1279 | /* wait 30 ms */ |
1326 | msleep(30); | 1280 | msleep(30); |
1327 | 1281 | ||
1328 | #if !defined(CS89x0_NONISA_IRQ) | ||
1329 | if (lp->chip_type != CS8900) { | 1282 | if (lp->chip_type != CS8900) { |
1330 | /* Hardware problem requires PNP registers to be reconfigured after a reset */ | 1283 | /* Hardware problem requires PNP registers to be reconfigured after a reset */ |
1331 | iowrite16(PP_CS8920_ISAINT, lp->virt_addr + ADD_PORT); | 1284 | iowrite16(PP_CS8920_ISAINT, lp->virt_addr + ADD_PORT); |
@@ -1338,7 +1291,6 @@ static void __init reset_chip(struct net_device *dev) | |||
1338 | iowrite8((dev->mem_start >> 8) & 0xff, | 1291 | iowrite8((dev->mem_start >> 8) & 0xff, |
1339 | lp->virt_addr + DATA_PORT + 1); | 1292 | lp->virt_addr + DATA_PORT + 1); |
1340 | } | 1293 | } |
1341 | #endif /* CS89x0_NONISA_IRQ */ | ||
1342 | 1294 | ||
1343 | /* Wait until the chip is reset */ | 1295 | /* Wait until the chip is reset */ |
1344 | reset_start_time = jiffies; | 1296 | reset_start_time = jiffies; |
@@ -1573,9 +1525,6 @@ cs89x0_probe1(struct net_device *dev, void __iomem *ioaddr, int modular) | |||
1573 | i = lp->isa_config & INT_NO_MASK; | 1525 | i = lp->isa_config & INT_NO_MASK; |
1574 | #ifndef CONFIG_CS89x0_PLATFORM | 1526 | #ifndef CONFIG_CS89x0_PLATFORM |
1575 | if (lp->chip_type == CS8900) { | 1527 | if (lp->chip_type == CS8900) { |
1576 | #ifdef CS89x0_NONISA_IRQ | ||
1577 | i = cs8900_irq_map[0]; | ||
1578 | #else | ||
1579 | /* Translate the IRQ using the IRQ mapping table. */ | 1528 | /* Translate the IRQ using the IRQ mapping table. */ |
1580 | if (i >= ARRAY_SIZE(cs8900_irq_map)) | 1529 | if (i >= ARRAY_SIZE(cs8900_irq_map)) |
1581 | pr_err("invalid ISA interrupt number %d\n", i); | 1530 | pr_err("invalid ISA interrupt number %d\n", i); |
@@ -1593,7 +1542,6 @@ cs89x0_probe1(struct net_device *dev, void __iomem *ioaddr, int modular) | |||
1593 | lp->irq_map = ((irq_map_buff[0] >> 8) | | 1542 | lp->irq_map = ((irq_map_buff[0] >> 8) | |
1594 | (irq_map_buff[1] << 8)); | 1543 | (irq_map_buff[1] << 8)); |
1595 | } | 1544 | } |
1596 | #endif | ||
1597 | } | 1545 | } |
1598 | #endif | 1546 | #endif |
1599 | if (!dev->irq) | 1547 | if (!dev->irq) |