]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/net/ethernet/icplus/ipg.c
Merge tag 'xfs-for-linus-v3.12-rc1' of git://oss.sgi.com/xfs/xfs
[karo-tx-linux.git] / drivers / net / ethernet / icplus / ipg.c
index 1fde90b96685e878b12ffeee0abc8487845cb4da..bdf5023724e768945f8ec71ceb32a27d897dba6e 100644 (file)
@@ -1004,7 +1004,7 @@ static struct net_device_stats *ipg_nic_get_stats(struct net_device *dev)
        /* Check to see if the NIC has been initialized via nic_open,
         * before trying to read statistic registers.
         */
-       if (!test_bit(__LINK_STATE_START, &dev->state))
+       if (!netif_running(dev))
                return &sp->stats;
 
        sp->stats.rx_packets += ipg_r32(IPG_FRAMESRCVDOK);