forked from Minki/linux
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:
parent
d152309941
commit
0329b7daff
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user