]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: use setup_timer to simplify the code
authorWei Yongjun <weiyongjun1@huawei.com>
Sat, 22 Oct 2016 14:28:00 +0000 (14:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Oct 2016 21:21:59 +0000 (17:21 -0400)
commit97e6615c7090d311a1b752b9e69adce759e28478
tree891fca9606aacb8e8f55501a6689ade5e91442bf
parentb830398805c1f2b429ac2a89068d7f2ecdde7485
net: dsa: mv88e6xxx: use setup_timer to simplify the code

Use setup_timer function instead of initializing timer with the function
and data fields.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c