Loading drivers/net/ax88796.c +19 −25 Original line number Diff line number Diff line Loading @@ -675,7 +675,7 @@ static void ax_initial_setup(struct net_device *dev, struct ei_device *ei_local) * the device is ready to be used by lib8390.c and registerd with * the network layer. */ static int ax_init_dev(struct net_device *dev, int first_init) static int ax_init_dev(struct net_device *dev) { struct ei_device *ei_local = netdev_priv(dev); struct ax_device *ax = to_ax_dev(dev); Loading @@ -695,7 +695,7 @@ static int ax_init_dev(struct net_device *dev, int first_init) /* read the mac from the card prom if we need it */ if (first_init && ax->plat->flags & AXFLG_HAS_EEPROM) { if (ax->plat->flags & AXFLG_HAS_EEPROM) { unsigned char SA_prom[32]; for (i = 0; i < sizeof(SA_prom); i += 2) { Loading @@ -711,7 +711,7 @@ static int ax_init_dev(struct net_device *dev, int first_init) } #ifdef CONFIG_AX88796_93CX6 if (first_init && ax->plat->flags & AXFLG_HAS_93CX6) { if (ax->plat->flags & AXFLG_HAS_93CX6) { unsigned char mac_addr[6]; struct eeprom_93cx6 eeprom; Loading @@ -737,11 +737,7 @@ static int ax_init_dev(struct net_device *dev, int first_init) stop_page = NE1SM_STOP_PG; } /* * load the mac-address from the device if this is the first * time we've initialised */ if (first_init) { /* load the mac-address from the device */ if (ax->plat->flags & AXFLG_MAC_FROMDEV) { ei_outb(E8390_NODMA + E8390_PAGE1 + E8390_STOP, ei_local->mem + E8390_CMD); /* 0x61 */ Loading @@ -754,7 +750,6 @@ static int ax_init_dev(struct net_device *dev, int first_init) ax->plat->mac_addr) memcpy(dev->dev_addr, ax->plat->mac_addr, ETHER_ADDR_LEN); } ax_reset_8390(dev); Loading Loading @@ -790,7 +785,6 @@ static int ax_init_dev(struct net_device *dev, int first_init) ax_NS8390_init(dev, 0); if (first_init) dev_info(&ax->dev->dev, "%dbit, irq %d, %lx, MAC: %pM\n", ei_local->word16 ? 16 : 8, dev->irq, dev->base_addr, dev->dev_addr); Loading Loading @@ -949,7 +943,7 @@ static int ax_probe(struct platform_device *pdev) /* got resources, now initialise and register device */ ret = ax_init_dev(dev, 1); ret = ax_init_dev(dev); if (!ret) return 0; Loading Loading
drivers/net/ax88796.c +19 −25 Original line number Diff line number Diff line Loading @@ -675,7 +675,7 @@ static void ax_initial_setup(struct net_device *dev, struct ei_device *ei_local) * the device is ready to be used by lib8390.c and registerd with * the network layer. */ static int ax_init_dev(struct net_device *dev, int first_init) static int ax_init_dev(struct net_device *dev) { struct ei_device *ei_local = netdev_priv(dev); struct ax_device *ax = to_ax_dev(dev); Loading @@ -695,7 +695,7 @@ static int ax_init_dev(struct net_device *dev, int first_init) /* read the mac from the card prom if we need it */ if (first_init && ax->plat->flags & AXFLG_HAS_EEPROM) { if (ax->plat->flags & AXFLG_HAS_EEPROM) { unsigned char SA_prom[32]; for (i = 0; i < sizeof(SA_prom); i += 2) { Loading @@ -711,7 +711,7 @@ static int ax_init_dev(struct net_device *dev, int first_init) } #ifdef CONFIG_AX88796_93CX6 if (first_init && ax->plat->flags & AXFLG_HAS_93CX6) { if (ax->plat->flags & AXFLG_HAS_93CX6) { unsigned char mac_addr[6]; struct eeprom_93cx6 eeprom; Loading @@ -737,11 +737,7 @@ static int ax_init_dev(struct net_device *dev, int first_init) stop_page = NE1SM_STOP_PG; } /* * load the mac-address from the device if this is the first * time we've initialised */ if (first_init) { /* load the mac-address from the device */ if (ax->plat->flags & AXFLG_MAC_FROMDEV) { ei_outb(E8390_NODMA + E8390_PAGE1 + E8390_STOP, ei_local->mem + E8390_CMD); /* 0x61 */ Loading @@ -754,7 +750,6 @@ static int ax_init_dev(struct net_device *dev, int first_init) ax->plat->mac_addr) memcpy(dev->dev_addr, ax->plat->mac_addr, ETHER_ADDR_LEN); } ax_reset_8390(dev); Loading Loading @@ -790,7 +785,6 @@ static int ax_init_dev(struct net_device *dev, int first_init) ax_NS8390_init(dev, 0); if (first_init) dev_info(&ax->dev->dev, "%dbit, irq %d, %lx, MAC: %pM\n", ei_local->word16 ? 16 : 8, dev->irq, dev->base_addr, dev->dev_addr); Loading Loading @@ -949,7 +943,7 @@ static int ax_probe(struct platform_device *pdev) /* got resources, now initialise and register device */ ret = ax_init_dev(dev, 1); ret = ax_init_dev(dev); if (!ret) return 0; Loading