aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/8390
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/8390')
-rw-r--r--drivers/net/ethernet/8390/Kconfig2
-rw-r--r--drivers/net/ethernet/8390/ax88796.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ethernet/8390/Kconfig b/drivers/net/ethernet/8390/Kconfig
index a5f91e1e8fe3..becef25fa194 100644
--- a/drivers/net/ethernet/8390/Kconfig
+++ b/drivers/net/ethernet/8390/Kconfig
@@ -148,7 +148,7 @@ config PCMCIA_PCNET
148 148
149config NE_H8300 149config NE_H8300
150 tristate "NE2000 compatible support for H8/300" 150 tristate "NE2000 compatible support for H8/300"
151 depends on H8300 151 depends on H8300H_AKI3068NET || H8300H_H8MAX
152 ---help--- 152 ---help---
153 Say Y here if you want to use the NE2000 compatible 153 Say Y here if you want to use the NE2000 compatible
154 controller on the Renesas H8/300 processor. 154 controller on the Renesas H8/300 processor.
diff --git a/drivers/net/ethernet/8390/ax88796.c b/drivers/net/ethernet/8390/ax88796.c
index e1d26433d619..f92f001551da 100644
--- a/drivers/net/ethernet/8390/ax88796.c
+++ b/drivers/net/ethernet/8390/ax88796.c
@@ -707,7 +707,7 @@ static int ax_init_dev(struct net_device *dev)
707 707
708#ifdef CONFIG_AX88796_93CX6 708#ifdef CONFIG_AX88796_93CX6
709 if (ax->plat->flags & AXFLG_HAS_93CX6) { 709 if (ax->plat->flags & AXFLG_HAS_93CX6) {
710 unsigned char mac_addr[6]; 710 unsigned char mac_addr[ETH_ALEN];
711 struct eeprom_93cx6 eeprom; 711 struct eeprom_93cx6 eeprom;
712 712
713 eeprom.data = ei_local; 713 eeprom.data = ei_local;
@@ -719,7 +719,7 @@ static int ax_init_dev(struct net_device *dev)
719 (__le16 __force *)mac_addr, 719 (__le16 __force *)mac_addr,
720 sizeof(mac_addr) >> 1); 720 sizeof(mac_addr) >> 1);
721 721
722 memcpy(dev->dev_addr, mac_addr, 6); 722 memcpy(dev->dev_addr, mac_addr, ETH_ALEN);
723 } 723 }
724#endif 724#endif
725 if (ax->plat->wordlength == 2) { 725 if (ax->plat->wordlength == 2) {
@@ -840,7 +840,7 @@ static int ax_probe(struct platform_device *pdev)
840 ei_local = netdev_priv(dev); 840 ei_local = netdev_priv(dev);
841 ax = to_ax_dev(dev); 841 ax = to_ax_dev(dev);
842 842
843 ax->plat = pdev->dev.platform_data; 843 ax->plat = dev_get_platdata(&pdev->dev);
844 platform_set_drvdata(pdev, dev); 844 platform_set_drvdata(pdev, dev);
845 845
846 ei_local->rxcr_base = ax->plat->rcr_val; 846 ei_local->rxcr_base = ax->plat->rcr_val;