]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
drivers: net: am79c961: use setup_timer() helper.
authorAllen Pais <allen.lkml@gmail.com>
Thu, 21 Sep 2017 17:04:29 +0000 (22:34 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Sep 2017 18:44:39 +0000 (11:44 -0700)
Use setup_timer function instead of initializing timer with the
    function and data fields.

Signed-off-by: Allen Pais <allen.lkml@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/am79c961a.c

index b11e910850f7f03d8ecd30ca02f5fe9a71fa4a1d..0612dbee00d2037e9e1a4c85107048901d01dfae 100644 (file)
@@ -728,9 +728,7 @@ static int am79c961_probe(struct platform_device *pdev)
        am79c961_banner();
 
        spin_lock_init(&priv->chip_lock);
-       init_timer(&priv->timer);
-       priv->timer.data = (unsigned long)dev;
-       priv->timer.function = am79c961_timer;
+       setup_timer(&priv->timer, am79c961_timer, (unsigned long)dev);
 
        if (am79c961_hw_init(dev))
                goto release;