]> Pileus Git - ~andy/linux/blobdiff - drivers/net/ethernet/marvell/sky2.c
net: Explicitly initialize u64_stats_sync structures for lockdep
[~andy/linux] / drivers / net / ethernet / marvell / sky2.c
index e09a8c6f85366c4c1251f5365549e154f743f08c..339d841a538b111cb4eea0215991aae1e36aefcb 100644 (file)
@@ -4763,6 +4763,9 @@ static struct net_device *sky2_init_netdev(struct sky2_hw *hw, unsigned port,
        sky2->hw = hw;
        sky2->msg_enable = netif_msg_init(debug, default_msg);
 
+       u64_stats_init(&sky2->tx_stats.syncp);
+       u64_stats_init(&sky2->rx_stats.syncp);
+
        /* Auto speed and flow control */
        sky2->flags = SKY2_FLAG_AUTO_SPEED | SKY2_FLAG_AUTO_PAUSE;
        if (hw->chip_id != CHIP_ID_YUKON_XL)