Commit f891f366 authored by Allen Pais's avatar Allen Pais Committed by David S. Miller

drivers: net: sun: cassini: use setup_timer() helper.

Use setup_timer function instead of initializing timer with the
    function and data fields.
Signed-off-by: default avatarAllen Pais <allen.lkml@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e998092f
...@@ -5039,10 +5039,7 @@ static int cas_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) ...@@ -5039,10 +5039,7 @@ static int cas_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
spin_lock_init(&cp->stat_lock[N_TX_RINGS]); spin_lock_init(&cp->stat_lock[N_TX_RINGS]);
mutex_init(&cp->pm_mutex); mutex_init(&cp->pm_mutex);
init_timer(&cp->link_timer); setup_timer(&cp->link_timer, cas_link_timer, (unsigned long)cp);
cp->link_timer.function = cas_link_timer;
cp->link_timer.data = (unsigned long) cp;
#if 1 #if 1
/* Just in case the implementation of atomic operations /* Just in case the implementation of atomic operations
* change so that an explicit initialization is necessary. * change so that an explicit initialization is necessary.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment