diff options
author | George McCollister <george.mccollister@gmail.com> | 2020-03-10 20:58:59 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-11 02:10:19 +0300 |
commit | 469b390e1ba330e888175e55d78573db2e9a8cb4 (patch) | |
tree | 72580e210fb5e9248a9a14ab76ce086ca06db710 /drivers/net/dsa/microchip/ksz_common.h | |
parent | 377bb76444a1c501e551522af6039ef7f33b0fa3 (diff) | |
download | linux-469b390e1ba330e888175e55d78573db2e9a8cb4.tar.xz |
net: dsa: microchip: use delayed_work instead of timer + work
Simplify ksz_common.c by using delayed_work instead of a combination of
timer and work.
Signed-off-by: George McCollister <george.mccollister@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/microchip/ksz_common.h')
-rw-r--r-- | drivers/net/dsa/microchip/ksz_common.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/dsa/microchip/ksz_common.h b/drivers/net/dsa/microchip/ksz_common.h index a20ebb749377..f2c9bb68fd33 100644 --- a/drivers/net/dsa/microchip/ksz_common.h +++ b/drivers/net/dsa/microchip/ksz_common.h @@ -80,8 +80,7 @@ struct ksz_device { struct vlan_table *vlan_cache; struct ksz_port *ports; - struct timer_list mib_read_timer; - struct work_struct mib_read; + struct delayed_work mib_read; unsigned long mib_read_interval; u16 br_member; u16 member; |