drivers: net: de4x: use setup_timer() helper.
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>
This commit is contained in:
committed by
David S. Miller
parent
908a23efb7
commit
4f88836d4f
@@ -1147,9 +1147,8 @@ de4x5_hw_init(struct net_device *dev, u_long iobase, struct device *gendev)
|
|||||||
lp->timeout = -1;
|
lp->timeout = -1;
|
||||||
lp->gendev = gendev;
|
lp->gendev = gendev;
|
||||||
spin_lock_init(&lp->lock);
|
spin_lock_init(&lp->lock);
|
||||||
init_timer(&lp->timer);
|
setup_timer(&lp->timer, (void (*)(unsigned long))de4x5_ast,
|
||||||
lp->timer.function = (void (*)(unsigned long))de4x5_ast;
|
(unsigned long)dev);
|
||||||
lp->timer.data = (unsigned long)dev;
|
|
||||||
de4x5_parse_params(dev);
|
de4x5_parse_params(dev);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user