diff options
Diffstat (limited to 'drivers/net/pcmcia/3c574_cs.c')
-rw-r--r-- | drivers/net/pcmcia/3c574_cs.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/pcmcia/3c574_cs.c b/drivers/net/pcmcia/3c574_cs.c index ad134a61302a..288177716a49 100644 --- a/drivers/net/pcmcia/3c574_cs.c +++ b/drivers/net/pcmcia/3c574_cs.c | |||
@@ -337,15 +337,15 @@ static int tc574_config(struct pcmcia_device *link) | |||
337 | struct net_device *dev = link->priv; | 337 | struct net_device *dev = link->priv; |
338 | struct el3_private *lp = netdev_priv(dev); | 338 | struct el3_private *lp = netdev_priv(dev); |
339 | tuple_t tuple; | 339 | tuple_t tuple; |
340 | unsigned short buf[32]; | 340 | __le16 buf[32]; |
341 | int last_fn, last_ret, i, j; | 341 | int last_fn, last_ret, i, j; |
342 | kio_addr_t ioaddr; | 342 | kio_addr_t ioaddr; |
343 | u16 *phys_addr; | 343 | __be16 *phys_addr; |
344 | char *cardname; | 344 | char *cardname; |
345 | union wn3_config config; | 345 | union wn3_config config; |
346 | DECLARE_MAC_BUF(mac); | 346 | DECLARE_MAC_BUF(mac); |
347 | 347 | ||
348 | phys_addr = (u16 *)dev->dev_addr; | 348 | phys_addr = (__be16 *)dev->dev_addr; |
349 | 349 | ||
350 | DEBUG(0, "3c574_config(0x%p)\n", link); | 350 | DEBUG(0, "3c574_config(0x%p)\n", link); |
351 | 351 | ||
@@ -378,12 +378,12 @@ static int tc574_config(struct pcmcia_device *link) | |||
378 | if (pcmcia_get_first_tuple(link, &tuple) == CS_SUCCESS) { | 378 | if (pcmcia_get_first_tuple(link, &tuple) == CS_SUCCESS) { |
379 | pcmcia_get_tuple_data(link, &tuple); | 379 | pcmcia_get_tuple_data(link, &tuple); |
380 | for (i = 0; i < 3; i++) | 380 | for (i = 0; i < 3; i++) |
381 | phys_addr[i] = htons(buf[i]); | 381 | phys_addr[i] = htons(le16_to_cpu(buf[i])); |
382 | } else { | 382 | } else { |
383 | EL3WINDOW(0); | 383 | EL3WINDOW(0); |
384 | for (i = 0; i < 3; i++) | 384 | for (i = 0; i < 3; i++) |
385 | phys_addr[i] = htons(read_eeprom(ioaddr, i + 10)); | 385 | phys_addr[i] = htons(read_eeprom(ioaddr, i + 10)); |
386 | if (phys_addr[0] == 0x6060) { | 386 | if (phys_addr[0] == htons(0x6060)) { |
387 | printk(KERN_NOTICE "3c574_cs: IO port conflict at 0x%03lx" | 387 | printk(KERN_NOTICE "3c574_cs: IO port conflict at 0x%03lx" |
388 | "-0x%03lx\n", dev->base_addr, dev->base_addr+15); | 388 | "-0x%03lx\n", dev->base_addr, dev->base_addr+15); |
389 | goto failed; | 389 | goto failed; |