diff options
author | sean.wang@mediatek.com <sean.wang@mediatek.com> | 2016-08-13 13:16:18 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-13 23:58:38 +0200 |
commit | d7005652cd31dfc5660e1e32bf7e53538ef14987 (patch) | |
tree | 1e1f1a9826952229ad9d9ba61d24b0b73aafb458 /drivers/net/ethernet/mediatek | |
parent | calipso: fix resource leak on calipso_genopt failure (diff) | |
download | linux-d7005652cd31dfc5660e1e32bf7e53538ef14987.tar.xz linux-d7005652cd31dfc5660e1e32bf7e53538ef14987.zip |
net: ethernet: mediatek: fixed that initializing u64_stats_sync is missing
To fix runtime warning with lockdep is enabled due that u64_stats_sync
is not initialized well, so add it.
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mediatek')
-rw-r--r-- | drivers/net/ethernet/mediatek/mtk_eth_soc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c index b57ae3afb994..fe17f8cee16b 100644 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c @@ -1751,6 +1751,7 @@ static int mtk_add_mac(struct mtk_eth *eth, struct device_node *np) goto free_netdev; } spin_lock_init(&mac->hw_stats->stats_lock); + u64_stats_init(&mac->hw_stats->syncp); mac->hw_stats->reg_offset = id * MTK_STAT_OFFSET; SET_NETDEV_DEV(eth->netdev[id], eth->dev); |