ambassador: use setup_timer

Use setup_timer() instead of init_timer() to simplify the code.

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Geliang Tang 2017-03-11 08:46:56 +08:00 committed by David S. Miller
parent d152309941
commit 0329b7daff

View File

@ -2267,9 +2267,8 @@ static int amb_probe(struct pci_dev *pci_dev,
dev->atm_dev->ci_range.vpi_bits = NUM_VPI_BITS; dev->atm_dev->ci_range.vpi_bits = NUM_VPI_BITS;
dev->atm_dev->ci_range.vci_bits = NUM_VCI_BITS; dev->atm_dev->ci_range.vci_bits = NUM_VCI_BITS;
init_timer(&dev->housekeeping); setup_timer(&dev->housekeeping, do_housekeeping,
dev->housekeeping.function = do_housekeeping; (unsigned long)dev);
dev->housekeeping.data = (unsigned long) dev;
mod_timer(&dev->housekeeping, jiffies); mod_timer(&dev->housekeeping, jiffies);
// enable host interrupts // enable host interrupts