Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers/net: Remove address use from assignments of function pointers

"foo = &function" is more commonly written "foo = function"

Done with coccinelle script:

// <smpl>
@r@
identifier f;
@@

f(...) { ... }

@@
identifier r.f;
@@

- &f
+ f
// </smpl>

drivers/net/tehuti.c used a function and struct with the
same name, the function was renamed.

Compile tested x86 only.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Joe Perches and committed by
David S. Miller
c061b18d 31018e06

+118 -118
+4 -4
drivers/net/3c503.c
··· 337 337 /* Finish setting the board's parameters. */ 338 338 ei_status.stop_page = EL2_MB1_STOP_PG; 339 339 ei_status.word16 = wordlength; 340 - ei_status.reset_8390 = &el2_reset_8390; 341 - ei_status.get_8390_hdr = &el2_get_8390_hdr; 342 - ei_status.block_input = &el2_block_input; 343 - ei_status.block_output = &el2_block_output; 340 + ei_status.reset_8390 = el2_reset_8390; 341 + ei_status.get_8390_hdr = el2_get_8390_hdr; 342 + ei_status.block_input = el2_block_input; 343 + ei_status.block_output = el2_block_output; 344 344 345 345 if (dev->irq == 2) 346 346 dev->irq = 9;
+1 -1
drivers/net/3c515.c
··· 734 734 init_timer(&vp->timer); 735 735 vp->timer.expires = jiffies + media_tbl[dev->if_port].wait; 736 736 vp->timer.data = (unsigned long) dev; 737 - vp->timer.function = &corkscrew_timer; /* timer handler */ 737 + vp->timer.function = corkscrew_timer; /* timer handler */ 738 738 add_timer(&vp->timer); 739 739 } else 740 740 dev->if_port = vp->default_media;
+1 -1
drivers/net/3c59x.c
··· 1738 1738 1739 1739 /* Use the now-standard shared IRQ implementation. */ 1740 1740 if ((retval = request_irq(dev->irq, vp->full_bus_master_rx ? 1741 - &boomerang_interrupt : &vortex_interrupt, IRQF_SHARED, dev->name, dev))) { 1741 + boomerang_interrupt : vortex_interrupt, IRQF_SHARED, dev->name, dev))) { 1742 1742 pr_err("%s: Could not reserve IRQ %d\n", dev->name, dev->irq); 1743 1743 goto err; 1744 1744 }
+1 -1
drivers/net/atl1e/atl1e_main.c
··· 2316 2316 netif_napi_add(netdev, &adapter->napi, atl1e_clean, 64); 2317 2317 2318 2318 init_timer(&adapter->phy_config_timer); 2319 - adapter->phy_config_timer.function = &atl1e_phy_config; 2319 + adapter->phy_config_timer.function = atl1e_phy_config; 2320 2320 adapter->phy_config_timer.data = (unsigned long) adapter; 2321 2321 2322 2322 /* get user settings */
+1 -1
drivers/net/atlx/atl1.c
··· 3036 3036 netif_carrier_off(netdev); 3037 3037 netif_stop_queue(netdev); 3038 3038 3039 - setup_timer(&adapter->phy_config_timer, &atl1_phy_config, 3039 + setup_timer(&adapter->phy_config_timer, atl1_phy_config, 3040 3040 (unsigned long)adapter); 3041 3041 adapter->phy_timer_pending = false; 3042 3042
+2 -2
drivers/net/atlx/atl2.c
··· 1444 1444 atl2_check_options(adapter); 1445 1445 1446 1446 init_timer(&adapter->watchdog_timer); 1447 - adapter->watchdog_timer.function = &atl2_watchdog; 1447 + adapter->watchdog_timer.function = atl2_watchdog; 1448 1448 adapter->watchdog_timer.data = (unsigned long) adapter; 1449 1449 1450 1450 init_timer(&adapter->phy_config_timer); 1451 - adapter->phy_config_timer.function = &atl2_phy_config; 1451 + adapter->phy_config_timer.function = atl2_phy_config; 1452 1452 adapter->phy_config_timer.data = (unsigned long) adapter; 1453 1453 1454 1454 INIT_WORK(&adapter->reset_task, atl2_reset_task);
+1 -1
drivers/net/atp.c
··· 445 445 init_timer(&lp->timer); 446 446 lp->timer.expires = jiffies + TIMED_CHECKER; 447 447 lp->timer.data = (unsigned long)dev; 448 - lp->timer.function = &atp_timed_checker; /* timer handler */ 448 + lp->timer.function = atp_timed_checker; /* timer handler */ 449 449 add_timer(&lp->timer); 450 450 451 451 netif_start_queue(dev);
+1 -1
drivers/net/bcm63xx_enet.c
··· 798 798 snprintf(phy_id, sizeof(phy_id), PHY_ID_FMT, 799 799 priv->mac_id ? "1" : "0", priv->phy_id); 800 800 801 - phydev = phy_connect(dev, phy_id, &bcm_enet_adjust_phy_link, 0, 801 + phydev = phy_connect(dev, phy_id, bcm_enet_adjust_phy_link, 0, 802 802 PHY_INTERFACE_MODE_MII); 803 803 804 804 if (IS_ERR(phydev)) {
+1 -1
drivers/net/cpmac.c
··· 1175 1175 snprintf(priv->phy_name, MII_BUS_ID_SIZE, PHY_ID_FMT, 1176 1176 mdio_bus_id, phy_id); 1177 1177 1178 - priv->phy = phy_connect(dev, priv->phy_name, &cpmac_adjust_link, 0, 1178 + priv->phy = phy_connect(dev, priv->phy_name, cpmac_adjust_link, 0, 1179 1179 PHY_INTERFACE_MODE_MII); 1180 1180 1181 1181 if (IS_ERR(priv->phy)) {
+1 -1
drivers/net/declance.c
··· 1255 1255 */ 1256 1256 init_timer(&lp->multicast_timer); 1257 1257 lp->multicast_timer.data = (unsigned long) dev; 1258 - lp->multicast_timer.function = &lance_set_multicast_retry; 1258 + lp->multicast_timer.function = lance_set_multicast_retry; 1259 1259 1260 1260 ret = register_netdev(dev); 1261 1261 if (ret) {
+1 -1
drivers/net/dl2k.c
··· 465 465 init_timer (&np->timer); 466 466 np->timer.expires = jiffies + 1*HZ; 467 467 np->timer.data = (unsigned long) dev; 468 - np->timer.function = &rio_timer; 468 + np->timer.function = rio_timer; 469 469 add_timer (&np->timer); 470 470 471 471 /* Start Tx/Rx */
+3 -3
drivers/net/e1000/e1000_main.c
··· 962 962 e1000_get_bus_info(hw); 963 963 964 964 init_timer(&adapter->tx_fifo_stall_timer); 965 - adapter->tx_fifo_stall_timer.function = &e1000_82547_tx_fifo_stall; 965 + adapter->tx_fifo_stall_timer.function = e1000_82547_tx_fifo_stall; 966 966 adapter->tx_fifo_stall_timer.data = (unsigned long)adapter; 967 967 968 968 init_timer(&adapter->watchdog_timer); 969 - adapter->watchdog_timer.function = &e1000_watchdog; 969 + adapter->watchdog_timer.function = e1000_watchdog; 970 970 adapter->watchdog_timer.data = (unsigned long) adapter; 971 971 972 972 init_timer(&adapter->phy_info_timer); 973 - adapter->phy_info_timer.function = &e1000_update_phy_info; 973 + adapter->phy_info_timer.function = e1000_update_phy_info; 974 974 adapter->phy_info_timer.data = (unsigned long)adapter; 975 975 976 976 INIT_WORK(&adapter->reset_task, e1000_reset_task);
+2 -2
drivers/net/e1000e/netdev.c
··· 5745 5745 } 5746 5746 5747 5747 init_timer(&adapter->watchdog_timer); 5748 - adapter->watchdog_timer.function = &e1000_watchdog; 5748 + adapter->watchdog_timer.function = e1000_watchdog; 5749 5749 adapter->watchdog_timer.data = (unsigned long) adapter; 5750 5750 5751 5751 init_timer(&adapter->phy_info_timer); 5752 - adapter->phy_info_timer.function = &e1000_update_phy_info; 5752 + adapter->phy_info_timer.function = e1000_update_phy_info; 5753 5753 adapter->phy_info_timer.data = (unsigned long) adapter; 5754 5754 5755 5755 INIT_WORK(&adapter->reset_task, e1000_reset_task);
+3 -3
drivers/net/ehea/ehea_main.c
··· 3721 3721 if (ret) 3722 3722 ehea_info("failed registering memory remove notifier"); 3723 3723 3724 - ret = crash_shutdown_register(&ehea_crash_handler); 3724 + ret = crash_shutdown_register(ehea_crash_handler); 3725 3725 if (ret) 3726 3726 ehea_info("failed registering crash handler"); 3727 3727 ··· 3746 3746 out2: 3747 3747 unregister_memory_notifier(&ehea_mem_nb); 3748 3748 unregister_reboot_notifier(&ehea_reboot_nb); 3749 - crash_shutdown_unregister(&ehea_crash_handler); 3749 + crash_shutdown_unregister(ehea_crash_handler); 3750 3750 out: 3751 3751 return ret; 3752 3752 } ··· 3759 3759 driver_remove_file(&ehea_driver.driver, &driver_attr_capabilities); 3760 3760 ibmebus_unregister_driver(&ehea_driver); 3761 3761 unregister_reboot_notifier(&ehea_reboot_nb); 3762 - ret = crash_shutdown_unregister(&ehea_crash_handler); 3762 + ret = crash_shutdown_unregister(ehea_crash_handler); 3763 3763 if (ret) 3764 3764 ehea_info("failed unregistering crash handler"); 3765 3765 unregister_memory_notifier(&ehea_mem_nb);
+1 -1
drivers/net/epic100.c
··· 758 758 init_timer(&ep->timer); 759 759 ep->timer.expires = jiffies + 3*HZ; 760 760 ep->timer.data = (unsigned long)dev; 761 - ep->timer.function = &epic_timer; /* timer handler */ 761 + ep->timer.function = epic_timer; /* timer handler */ 762 762 add_timer(&ep->timer); 763 763 764 764 return 0;
+2 -2
drivers/net/fealnx.c
··· 915 915 init_timer(&np->timer); 916 916 np->timer.expires = RUN_AT(3 * HZ); 917 917 np->timer.data = (unsigned long) dev; 918 - np->timer.function = &netdev_timer; 918 + np->timer.function = netdev_timer; 919 919 920 920 /* timer handler */ 921 921 add_timer(&np->timer); 922 922 923 923 init_timer(&np->reset_timer); 924 924 np->reset_timer.data = (unsigned long) dev; 925 - np->reset_timer.function = &reset_timer; 925 + np->reset_timer.function = reset_timer; 926 926 np->reset_timer_armed = 0; 927 927 928 928 return 0;
+3 -3
drivers/net/forcedeth.c
··· 5440 5440 5441 5441 init_timer(&np->oom_kick); 5442 5442 np->oom_kick.data = (unsigned long) dev; 5443 - np->oom_kick.function = &nv_do_rx_refill; /* timer handler */ 5443 + np->oom_kick.function = nv_do_rx_refill; /* timer handler */ 5444 5444 init_timer(&np->nic_poll); 5445 5445 np->nic_poll.data = (unsigned long) dev; 5446 - np->nic_poll.function = &nv_do_nic_poll; /* timer handler */ 5446 + np->nic_poll.function = nv_do_nic_poll; /* timer handler */ 5447 5447 init_timer(&np->stats_poll); 5448 5448 np->stats_poll.data = (unsigned long) dev; 5449 - np->stats_poll.function = &nv_do_stats_poll; /* timer handler */ 5449 + np->stats_poll.function = nv_do_stats_poll; /* timer handler */ 5450 5450 5451 5451 err = pci_enable_device(pci_dev); 5452 5452 if (err)
+1 -1
drivers/net/hamachi.c
··· 1004 1004 init_timer(&hmp->timer); 1005 1005 hmp->timer.expires = RUN_AT((24*HZ)/10); /* 2.4 sec. */ 1006 1006 hmp->timer.data = (unsigned long)dev; 1007 - hmp->timer.function = &hamachi_timer; /* timer handler */ 1007 + hmp->timer.function = hamachi_timer; /* timer handler */ 1008 1008 add_timer(&hmp->timer); 1009 1009 1010 1010 return 0;
+4 -4
drivers/net/hp.c
··· 204 204 ei_status.rx_start_page = HP_START_PG + TX_PAGES; 205 205 ei_status.stop_page = wordmode ? HP_16BSTOP_PG : HP_8BSTOP_PG; 206 206 207 - ei_status.reset_8390 = &hp_reset_8390; 208 - ei_status.get_8390_hdr = &hp_get_8390_hdr; 209 - ei_status.block_input = &hp_block_input; 210 - ei_status.block_output = &hp_block_output; 207 + ei_status.reset_8390 = hp_reset_8390; 208 + ei_status.get_8390_hdr = hp_get_8390_hdr; 209 + ei_status.block_input = hp_block_input; 210 + ei_status.block_output = hp_block_output; 211 211 hp_init_card(dev); 212 212 213 213 retval = register_netdev(dev);
+4 -4
drivers/net/hydra.c
··· 155 155 156 156 ei_status.rx_start_page = start_page + TX_PAGES; 157 157 158 - ei_status.reset_8390 = &hydra_reset_8390; 159 - ei_status.block_input = &hydra_block_input; 160 - ei_status.block_output = &hydra_block_output; 161 - ei_status.get_8390_hdr = &hydra_get_8390_hdr; 158 + ei_status.reset_8390 = hydra_reset_8390; 159 + ei_status.block_input = hydra_block_input; 160 + ei_status.block_output = hydra_block_output; 161 + ei_status.get_8390_hdr = hydra_get_8390_hdr; 162 162 ei_status.reg_offset = hydra_offsets; 163 163 164 164 dev->netdev_ops = &hydra_netdev_ops;
+2 -2
drivers/net/igb/igb_main.c
··· 1888 1888 goto err_eeprom; 1889 1889 } 1890 1890 1891 - setup_timer(&adapter->watchdog_timer, &igb_watchdog, 1891 + setup_timer(&adapter->watchdog_timer, igb_watchdog, 1892 1892 (unsigned long) adapter); 1893 - setup_timer(&adapter->phy_info_timer, &igb_update_phy_info, 1893 + setup_timer(&adapter->phy_info_timer, igb_update_phy_info, 1894 1894 (unsigned long) adapter); 1895 1895 1896 1896 INIT_WORK(&adapter->reset_task, igb_reset_task);
+1 -1
drivers/net/ioc3-eth.c
··· 827 827 { 828 828 ip->ioc3_timer.expires = jiffies + (12 * HZ)/10; /* 1.2 sec. */ 829 829 ip->ioc3_timer.data = (unsigned long) ip; 830 - ip->ioc3_timer.function = &ioc3_timer; 830 + ip->ioc3_timer.function = ioc3_timer; 831 831 add_timer(&ip->ioc3_timer); 832 832 } 833 833
+1 -1
drivers/net/ixgb/ixgb_main.c
··· 470 470 adapter->part_num = ixgb_get_ee_pba_number(&adapter->hw); 471 471 472 472 init_timer(&adapter->watchdog_timer); 473 - adapter->watchdog_timer.function = &ixgb_watchdog; 473 + adapter->watchdog_timer.function = ixgb_watchdog; 474 474 adapter->watchdog_timer.data = (unsigned long)adapter; 475 475 476 476 INIT_WORK(&adapter->tx_timeout_task, ixgb_tx_timeout_task);
+2 -2
drivers/net/ixgbe/ixgbe_main.c
··· 6730 6730 * which might start the timer 6731 6731 */ 6732 6732 init_timer(&adapter->sfp_timer); 6733 - adapter->sfp_timer.function = &ixgbe_sfp_timer; 6733 + adapter->sfp_timer.function = ixgbe_sfp_timer; 6734 6734 adapter->sfp_timer.data = (unsigned long) adapter; 6735 6735 6736 6736 INIT_WORK(&adapter->sfp_task, ixgbe_sfp_task); ··· 6862 6862 hw->mac.ops.disable_tx_laser(hw); 6863 6863 6864 6864 init_timer(&adapter->watchdog_timer); 6865 - adapter->watchdog_timer.function = &ixgbe_watchdog; 6865 + adapter->watchdog_timer.function = ixgbe_watchdog; 6866 6866 adapter->watchdog_timer.data = (unsigned long)adapter; 6867 6867 6868 6868 INIT_WORK(&adapter->reset_task, ixgbe_reset_task);
+1 -1
drivers/net/ixgbevf/ixgbevf_main.c
··· 3426 3426 } 3427 3427 3428 3428 init_timer(&adapter->watchdog_timer); 3429 - adapter->watchdog_timer.function = &ixgbevf_watchdog; 3429 + adapter->watchdog_timer.function = ixgbevf_watchdog; 3430 3430 adapter->watchdog_timer.data = (unsigned long)adapter; 3431 3431 3432 3432 INIT_WORK(&adapter->reset_task, ixgbevf_reset_task);
+24 -24
drivers/net/mac8390.c
··· 562 562 563 563 case ACCESS_16: 564 564 /* 16 bit card, register map is reversed */ 565 - ei_status.reset_8390 = &mac8390_no_reset; 566 - ei_status.block_input = &slow_sane_block_input; 567 - ei_status.block_output = &slow_sane_block_output; 568 - ei_status.get_8390_hdr = &slow_sane_get_8390_hdr; 565 + ei_status.reset_8390 = mac8390_no_reset; 566 + ei_status.block_input = slow_sane_block_input; 567 + ei_status.block_output = slow_sane_block_output; 568 + ei_status.get_8390_hdr = slow_sane_get_8390_hdr; 569 569 ei_status.reg_offset = back4_offsets; 570 570 break; 571 571 572 572 case ACCESS_32: 573 573 /* 32 bit card, register map is reversed */ 574 - ei_status.reset_8390 = &mac8390_no_reset; 575 - ei_status.block_input = &sane_block_input; 576 - ei_status.block_output = &sane_block_output; 577 - ei_status.get_8390_hdr = &sane_get_8390_hdr; 574 + ei_status.reset_8390 = mac8390_no_reset; 575 + ei_status.block_input = sane_block_input; 576 + ei_status.block_output = sane_block_output; 577 + ei_status.get_8390_hdr = sane_get_8390_hdr; 578 578 ei_status.reg_offset = back4_offsets; 579 579 access_bitmode = 1; 580 580 break; ··· 586 586 * but overwrite system memory when run at 32 bit. 587 587 * so we run them all at 16 bit. 588 588 */ 589 - ei_status.reset_8390 = &mac8390_no_reset; 590 - ei_status.block_input = &slow_sane_block_input; 591 - ei_status.block_output = &slow_sane_block_output; 592 - ei_status.get_8390_hdr = &slow_sane_get_8390_hdr; 589 + ei_status.reset_8390 = mac8390_no_reset; 590 + ei_status.block_input = slow_sane_block_input; 591 + ei_status.block_output = slow_sane_block_output; 592 + ei_status.get_8390_hdr = slow_sane_get_8390_hdr; 593 593 ei_status.reg_offset = back4_offsets; 594 594 break; 595 595 596 596 case MAC8390_CABLETRON: 597 597 /* 16 bit card, register map is short forward */ 598 - ei_status.reset_8390 = &mac8390_no_reset; 599 - ei_status.block_input = &slow_sane_block_input; 600 - ei_status.block_output = &slow_sane_block_output; 601 - ei_status.get_8390_hdr = &slow_sane_get_8390_hdr; 598 + ei_status.reset_8390 = mac8390_no_reset; 599 + ei_status.block_input = slow_sane_block_input; 600 + ei_status.block_output = slow_sane_block_output; 601 + ei_status.get_8390_hdr = slow_sane_get_8390_hdr; 602 602 ei_status.reg_offset = fwrd2_offsets; 603 603 break; 604 604 ··· 606 606 case MAC8390_KINETICS: 607 607 /* 16 bit memory, register map is forward */ 608 608 /* dayna and similar */ 609 - ei_status.reset_8390 = &mac8390_no_reset; 610 - ei_status.block_input = &dayna_block_input; 611 - ei_status.block_output = &dayna_block_output; 612 - ei_status.get_8390_hdr = &dayna_get_8390_hdr; 609 + ei_status.reset_8390 = mac8390_no_reset; 610 + ei_status.block_input = dayna_block_input; 611 + ei_status.block_output = dayna_block_output; 612 + ei_status.get_8390_hdr = dayna_get_8390_hdr; 613 613 ei_status.reg_offset = fwrd4_offsets; 614 614 break; 615 615 616 616 case MAC8390_INTERLAN: 617 617 /* 16 bit memory, register map is forward */ 618 - ei_status.reset_8390 = &interlan_reset; 619 - ei_status.block_input = &slow_sane_block_input; 620 - ei_status.block_output = &slow_sane_block_output; 621 - ei_status.get_8390_hdr = &slow_sane_get_8390_hdr; 618 + ei_status.reset_8390 = interlan_reset; 619 + ei_status.block_input = slow_sane_block_input; 620 + ei_status.block_output = slow_sane_block_output; 621 + ei_status.get_8390_hdr = slow_sane_get_8390_hdr; 622 622 ei_status.reg_offset = fwrd4_offsets; 623 623 break; 624 624
+1 -1
drivers/net/natsemi.c
··· 1570 1570 init_timer(&np->timer); 1571 1571 np->timer.expires = round_jiffies(jiffies + NATSEMI_TIMER_FREQ); 1572 1572 np->timer.data = (unsigned long)dev; 1573 - np->timer.function = &netdev_timer; /* timer handler */ 1573 + np->timer.function = netdev_timer; /* timer handler */ 1574 1574 add_timer(&np->timer); 1575 1575 1576 1576 return 0;
+1 -1
drivers/net/pci-skeleton.c
··· 1125 1125 init_timer(&tp->timer); 1126 1126 tp->timer.expires = jiffies + 3 * HZ; 1127 1127 tp->timer.data = (unsigned long) dev; 1128 - tp->timer.function = &netdrv_timer; 1128 + tp->timer.function = netdrv_timer; 1129 1129 add_timer(&tp->timer); 1130 1130 1131 1131 DPRINTK("EXIT, returning 0\n");
+1 -1
drivers/net/pcmcia/3c574_cs.c
··· 707 707 netif_start_queue(dev); 708 708 709 709 tc574_reset(dev); 710 - lp->media.function = &media_check; 710 + lp->media.function = media_check; 711 711 lp->media.data = (unsigned long) dev; 712 712 lp->media.expires = jiffies + HZ; 713 713 add_timer(&lp->media);
+1 -1
drivers/net/pcmcia/3c589_cs.c
··· 538 538 539 539 tc589_reset(dev); 540 540 init_timer(&lp->media); 541 - lp->media.function = &media_check; 541 + lp->media.function = media_check; 542 542 lp->media.data = (unsigned long) dev; 543 543 lp->media.expires = jiffies + HZ; 544 544 add_timer(&lp->media);
+5 -5
drivers/net/pcmcia/axnet_cs.c
··· 356 356 ei_status.tx_start_page = AXNET_START_PG; 357 357 ei_status.rx_start_page = AXNET_START_PG + TX_PAGES; 358 358 ei_status.stop_page = AXNET_STOP_PG; 359 - ei_status.reset_8390 = &axnet_reset_8390; 360 - ei_status.get_8390_hdr = &get_8390_hdr; 361 - ei_status.block_input = &block_input; 362 - ei_status.block_output = &block_output; 359 + ei_status.reset_8390 = axnet_reset_8390; 360 + ei_status.get_8390_hdr = get_8390_hdr; 361 + ei_status.block_input = block_input; 362 + ei_status.block_output = block_output; 363 363 364 364 if (inb(dev->base_addr + AXNET_TEST) != 0) 365 365 info->flags |= IS_AX88790; ··· 530 530 531 531 info->link_status = 0x00; 532 532 init_timer(&info->watchdog); 533 - info->watchdog.function = &ei_watchdog; 533 + info->watchdog.function = ei_watchdog; 534 534 info->watchdog.data = (u_long)dev; 535 535 info->watchdog.expires = jiffies + HZ; 536 536 add_timer(&info->watchdog);
+8 -8
drivers/net/pcmcia/pcnet_cs.c
··· 624 624 625 625 ei_status.name = "NE2000"; 626 626 ei_status.word16 = 1; 627 - ei_status.reset_8390 = &pcnet_reset_8390; 627 + ei_status.reset_8390 = pcnet_reset_8390; 628 628 629 629 if (info->flags & (IS_DL10019|IS_DL10022)) 630 630 mii_phy_probe(dev); ··· 957 957 info->phy_id = info->eth_phy; 958 958 info->link_status = 0x00; 959 959 init_timer(&info->watchdog); 960 - info->watchdog.function = &ei_watchdog; 960 + info->watchdog.function = ei_watchdog; 961 961 info->watchdog.data = (u_long)dev; 962 962 info->watchdog.expires = jiffies + HZ; 963 963 add_timer(&info->watchdog); ··· 1341 1341 ei_status.stop_page = stop_pg; 1342 1342 1343 1343 /* set up block i/o functions */ 1344 - ei_status.get_8390_hdr = &dma_get_8390_hdr; 1345 - ei_status.block_input = &dma_block_input; 1346 - ei_status.block_output = &dma_block_output; 1344 + ei_status.get_8390_hdr = dma_get_8390_hdr; 1345 + ei_status.block_input = dma_block_input; 1346 + ei_status.block_output = dma_block_output; 1347 1347 1348 1348 return 0; 1349 1349 } ··· 1489 1489 ei_status.stop_page = start_pg + ((req.Size - offset) >> 8); 1490 1490 1491 1491 /* set up block i/o functions */ 1492 - ei_status.get_8390_hdr = &shmem_get_8390_hdr; 1493 - ei_status.block_input = &shmem_block_input; 1494 - ei_status.block_output = &shmem_block_output; 1492 + ei_status.get_8390_hdr = shmem_get_8390_hdr; 1493 + ei_status.block_input = shmem_block_input; 1494 + ei_status.block_output = shmem_block_output; 1495 1495 1496 1496 info->flags |= USE_SHMEM; 1497 1497 return 0;
+2 -2
drivers/net/pcmcia/smc91c92_cs.c
··· 296 296 .ndo_tx_timeout = smc_tx_timeout, 297 297 .ndo_set_config = s9k_config, 298 298 .ndo_set_multicast_list = set_rx_mode, 299 - .ndo_do_ioctl = &smc_ioctl, 299 + .ndo_do_ioctl = smc_ioctl, 300 300 .ndo_change_mtu = eth_change_mtu, 301 301 .ndo_set_mac_address = eth_mac_addr, 302 302 .ndo_validate_addr = eth_validate_addr, ··· 1117 1117 1118 1118 smc_reset(dev); 1119 1119 init_timer(&smc->media); 1120 - smc->media.function = &media_check; 1120 + smc->media.function = media_check; 1121 1121 smc->media.data = (u_long) dev; 1122 1122 smc->media.expires = jiffies + HZ; 1123 1123 add_timer(&smc->media);
+1 -1
drivers/net/rrunner.c
··· 1245 1245 init_timer(&rrpriv->timer); 1246 1246 rrpriv->timer.expires = RUN_AT(5*HZ); /* 5 sec. watchdog */ 1247 1247 rrpriv->timer.data = (unsigned long)dev; 1248 - rrpriv->timer.function = &rr_timer; /* timer handler */ 1248 + rrpriv->timer.function = rr_timer; /* timer handler */ 1249 1249 add_timer(&rrpriv->timer); 1250 1250 1251 1251 netif_start_queue(dev);
+1 -1
drivers/net/sh_eth.c
··· 1031 1031 mdp->duplex = -1; 1032 1032 1033 1033 /* Try connect to PHY */ 1034 - phydev = phy_connect(ndev, phy_id, &sh_eth_adjust_link, 1034 + phydev = phy_connect(ndev, phy_id, sh_eth_adjust_link, 1035 1035 0, PHY_INTERFACE_MODE_MII); 1036 1036 if (IS_ERR(phydev)) { 1037 1037 dev_err(&ndev->dev, "phy_connect failed\n");
+1 -1
drivers/net/sis900.c
··· 1042 1042 init_timer(&sis_priv->timer); 1043 1043 sis_priv->timer.expires = jiffies + HZ; 1044 1044 sis_priv->timer.data = (unsigned long)net_dev; 1045 - sis_priv->timer.function = &sis900_timer; 1045 + sis_priv->timer.function = sis900_timer; 1046 1046 add_timer(&sis_priv->timer); 1047 1047 1048 1048 return 0;
+1 -1
drivers/net/sunbmac.c
··· 617 617 bp->timer_ticks = 0; 618 618 bp->bigmac_timer.expires = jiffies + (12 * HZ) / 10; 619 619 bp->bigmac_timer.data = (unsigned long) bp; 620 - bp->bigmac_timer.function = &bigmac_timer; 620 + bp->bigmac_timer.function = bigmac_timer; 621 621 add_timer(&bp->bigmac_timer); 622 622 } 623 623
+1 -1
drivers/net/sundance.c
··· 874 874 init_timer(&np->timer); 875 875 np->timer.expires = jiffies + 3*HZ; 876 876 np->timer.data = (unsigned long)dev; 877 - np->timer.function = &netdev_timer; /* timer handler */ 877 + np->timer.function = netdev_timer; /* timer handler */ 878 878 add_timer(&np->timer); 879 879 880 880 /* Enable interrupts by setting the interrupt mask. */
+1 -1
drivers/net/sunhme.c
··· 1409 1409 hp->timer_ticks = 0; 1410 1410 hp->happy_timer.expires = jiffies + (12 * HZ)/10; /* 1.2 sec. */ 1411 1411 hp->happy_timer.data = (unsigned long) hp; 1412 - hp->happy_timer.function = &happy_meal_timer; 1412 + hp->happy_timer.function = happy_meal_timer; 1413 1413 add_timer(&hp->happy_timer); 1414 1414 } 1415 1415
+1 -1
drivers/net/sunlance.c
··· 1483 1483 */ 1484 1484 init_timer(&lp->multicast_timer); 1485 1485 lp->multicast_timer.data = (unsigned long) dev; 1486 - lp->multicast_timer.function = &lance_set_multicast_retry; 1486 + lp->multicast_timer.function = lance_set_multicast_retry; 1487 1487 1488 1488 if (register_netdev(dev)) { 1489 1489 printk(KERN_ERR "SunLance: Cannot register device.\n");
+4 -4
drivers/net/tehuti.c
··· 92 92 static void bdx_tx_free(struct bdx_priv *priv); 93 93 94 94 /* Definitions needed by bdx_probe */ 95 - static void bdx_ethtool_ops(struct net_device *netdev); 95 + static void bdx_set_ethtool_ops(struct net_device *netdev); 96 96 97 97 /************************************************************************* 98 98 * Print Info * ··· 2005 2005 ndev->netdev_ops = &bdx_netdev_ops; 2006 2006 ndev->tx_queue_len = BDX_NDEV_TXQ_LEN; 2007 2007 2008 - bdx_ethtool_ops(ndev); /* ethtool interface */ 2008 + bdx_set_ethtool_ops(ndev); /* ethtool interface */ 2009 2009 2010 2010 /* these fields are used for info purposes only 2011 2011 * so we can have them same for all ports of the board */ ··· 2410 2410 } 2411 2411 2412 2412 /* 2413 - * bdx_ethtool_ops - ethtool interface implementation 2413 + * bdx_set_ethtool_ops - ethtool interface implementation 2414 2414 * @netdev 2415 2415 */ 2416 - static void bdx_ethtool_ops(struct net_device *netdev) 2416 + static void bdx_set_ethtool_ops(struct net_device *netdev) 2417 2417 { 2418 2418 static const struct ethtool_ops bdx_ethtool_ops = { 2419 2419 .get_settings = bdx_get_settings,
+4 -4
drivers/net/tlan.c
··· 393 393 spin_unlock_irqrestore(&priv->lock, flags); 394 394 return; 395 395 } 396 - priv->timer.function = &TLan_Timer; 396 + priv->timer.function = TLan_Timer; 397 397 if (!in_irq()) 398 398 spin_unlock_irqrestore(&priv->lock, flags); 399 399 ··· 1453 1453 TLan_DioWrite8( dev->base_addr, 1454 1454 TLAN_LED_REG, TLAN_LED_LINK | TLAN_LED_ACT ); 1455 1455 if ( priv->timer.function == NULL ) { 1456 - priv->timer.function = &TLan_Timer; 1456 + priv->timer.function = TLan_Timer; 1457 1457 priv->timer.data = (unsigned long) dev; 1458 1458 priv->timer.expires = jiffies + TLAN_TIMER_ACT_DELAY; 1459 1459 priv->timerSetAt = jiffies; ··· 1601 1601 TLan_DioWrite8( dev->base_addr, 1602 1602 TLAN_LED_REG, TLAN_LED_LINK | TLAN_LED_ACT ); 1603 1603 if ( priv->timer.function == NULL ) { 1604 - priv->timer.function = &TLan_Timer; 1604 + priv->timer.function = TLan_Timer; 1605 1605 priv->timer.data = (unsigned long) dev; 1606 1606 priv->timer.expires = jiffies + TLAN_TIMER_ACT_DELAY; 1607 1607 priv->timerSetAt = jiffies; ··· 1897 1897 TLan_DioWrite8( dev->base_addr, 1898 1898 TLAN_LED_REG, TLAN_LED_LINK ); 1899 1899 } else { 1900 - priv->timer.function = &TLan_Timer; 1900 + priv->timer.function = TLan_Timer; 1901 1901 priv->timer.expires = priv->timerSetAt 1902 1902 + TLAN_TIMER_ACT_DELAY; 1903 1903 spin_unlock_irqrestore(&priv->lock, flags);
+1 -1
drivers/net/tulip/dmfe.c
··· 599 599 init_timer(&db->timer); 600 600 db->timer.expires = DMFE_TIMER_WUT + HZ * 2; 601 601 db->timer.data = (unsigned long)dev; 602 - db->timer.function = &dmfe_timer; 602 + db->timer.function = dmfe_timer; 603 603 add_timer(&db->timer); 604 604 605 605 return 0;
+1 -1
drivers/net/tulip/uli526x.c
··· 480 480 init_timer(&db->timer); 481 481 db->timer.expires = ULI526X_TIMER_WUT + HZ * 2; 482 482 db->timer.data = (unsigned long)dev; 483 - db->timer.function = &uli526x_timer; 483 + db->timer.function = uli526x_timer; 484 484 add_timer(&db->timer); 485 485 486 486 return 0;
+1 -1
drivers/net/tulip/winbond-840.c
··· 662 662 init_timer(&np->timer); 663 663 np->timer.expires = jiffies + 1*HZ; 664 664 np->timer.data = (unsigned long)dev; 665 - np->timer.function = &netdev_timer; /* timer handler */ 665 + np->timer.function = netdev_timer; /* timer handler */ 666 666 add_timer(&np->timer); 667 667 return 0; 668 668 out_err:
+1 -1
drivers/net/wan/lmc/lmc_main.c
··· 1105 1105 init_timer (&sc->timer); 1106 1106 sc->timer.expires = jiffies + HZ; 1107 1107 sc->timer.data = (unsigned long) dev; 1108 - sc->timer.function = &lmc_watchdog; 1108 + sc->timer.function = lmc_watchdog; 1109 1109 add_timer (&sc->timer); 1110 1110 1111 1111 lmc_trace(dev, "lmc_open out");
+4 -4
drivers/net/wd.c
··· 342 342 printk(" %s, IRQ %d, shared memory at %#lx-%#lx.\n", 343 343 model_name, dev->irq, dev->mem_start, dev->mem_end-1); 344 344 345 - ei_status.reset_8390 = &wd_reset_8390; 346 - ei_status.block_input = &wd_block_input; 347 - ei_status.block_output = &wd_block_output; 348 - ei_status.get_8390_hdr = &wd_get_8390_hdr; 345 + ei_status.reset_8390 = wd_reset_8390; 346 + ei_status.block_input = wd_block_input; 347 + ei_status.block_output = wd_block_output; 348 + ei_status.get_8390_hdr = wd_get_8390_hdr; 349 349 350 350 dev->netdev_ops = &wd_netdev_ops; 351 351 NS8390_init(dev, 0);
+6 -6
drivers/net/wireless/ray_cs.c
··· 604 604 /* Start kernel timer to wait for dl startup to complete. */ 605 605 local->timer.expires = jiffies + HZ / 2; 606 606 local->timer.data = (long)local; 607 - local->timer.function = &verify_dl_startup; 607 + local->timer.function = verify_dl_startup; 608 608 add_timer(&local->timer); 609 609 dev_dbg(&link->dev, 610 610 "ray_cs dl_startup_params started timer for verify_dl_startup\n"); ··· 1981 1981 dev_dbg(&link->dev, 1982 1982 "ray_cs interrupt network \"%s\" start failed\n", 1983 1983 local->sparm.b4.a_current_ess_id); 1984 - local->timer.function = &start_net; 1984 + local->timer.function = start_net; 1985 1985 } else { 1986 1986 dev_dbg(&link->dev, 1987 1987 "ray_cs interrupt network \"%s\" join failed\n", 1988 1988 local->sparm.b4.a_current_ess_id); 1989 - local->timer.function = &join_net; 1989 + local->timer.function = join_net; 1990 1990 } 1991 1991 add_timer(&local->timer); 1992 1992 } ··· 2454 2454 2455 2455 del_timer(&local->timer); 2456 2456 if (build_auth_frame(local, local->bss_id, OPEN_AUTH_REQUEST)) { 2457 - local->timer.function = &join_net; 2457 + local->timer.function = join_net; 2458 2458 } else { 2459 - local->timer.function = &authenticate_timeout; 2459 + local->timer.function = authenticate_timeout; 2460 2460 } 2461 2461 local->timer.expires = jiffies + HZ * 2; 2462 2462 local->timer.data = (long)local; ··· 2541 2541 del_timer(&local->timer); 2542 2542 local->timer.expires = jiffies + HZ * 2; 2543 2543 local->timer.data = (long)local; 2544 - local->timer.function = &join_net; 2544 + local->timer.function = join_net; 2545 2545 add_timer(&local->timer); 2546 2546 local->card_status = CARD_ASSOC_FAILED; 2547 2547 return;
+1 -1
drivers/net/yellowfin.c
··· 646 646 init_timer(&yp->timer); 647 647 yp->timer.expires = jiffies + 3*HZ; 648 648 yp->timer.data = (unsigned long)dev; 649 - yp->timer.function = &yellowfin_timer; /* timer handler */ 649 + yp->timer.function = yellowfin_timer; /* timer handler */ 650 650 add_timer(&yp->timer); 651 651 652 652 return 0;