diff options
author | Geliang Tang <geliangtang@163.com> | 2016-01-01 23:48:57 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-01-04 16:07:16 -0500 |
commit | 6e898bfd6e9e5cd0f7f8275ad4dc41a3acf7c75a (patch) | |
tree | bce9dfeaa354db640f0ef31dfbfb69dd42ae9ab3 /drivers/net/ethernet | |
parent | 48b874cce652a3aed8d57ead68ab9937fb488c52 (diff) | |
download | linux-6e898bfd6e9e5cd0f7f8275ad4dc41a3acf7c75a.tar.bz2 |
tilepro: use to_delayed_work
Use to_delayed_work() instead of open-coding it.
Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/tile/tilepro.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/tile/tilepro.c b/drivers/net/ethernet/tile/tilepro.c index 6f0a4495c7f3..298e059d0498 100644 --- a/drivers/net/ethernet/tile/tilepro.c +++ b/drivers/net/ethernet/tile/tilepro.c @@ -1349,8 +1349,7 @@ static int tile_net_open_inner(struct net_device *dev) */ static void tile_net_open_retry(struct work_struct *w) { - struct delayed_work *dw = - container_of(w, struct delayed_work, work); + struct delayed_work *dw = to_delayed_work(w); struct tile_net_priv *priv = container_of(dw, struct tile_net_priv, retry_work); |