drivers: net: b44: 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:
Allen Pais 2017-09-21 22:34:23 +05:30 committed by David S. Miller
parent 4f88836d4f
commit cdc91b31b8
1 changed files with 1 additions and 3 deletions

View File

@ -1474,10 +1474,8 @@ static int b44_open(struct net_device *dev)
goto out;
}
init_timer(&bp->timer);
setup_timer(&bp->timer, b44_timer, (unsigned long)bp);
bp->timer.expires = jiffies + HZ;
bp->timer.data = (unsigned long) bp;
bp->timer.function = b44_timer;
add_timer(&bp->timer);
b44_enable_ints(bp);