net: stmmac: replace the ext_snapshot_en field with a flag
[platform/kernel/linux-rpi.git] / drivers / net / ethernet / stmicro / stmmac / stmmac_hwtstamp.c
index 8b50f03..afd81aa 100644 (file)
@@ -195,7 +195,7 @@ static void timestamp_interrupt(struct stmmac_priv *priv)
         */
        ts_status = readl(priv->ioaddr + GMAC_TIMESTAMP_STATUS);
 
-       if (!priv->plat->ext_snapshot_en)
+       if (priv->plat->flags & STMMAC_FLAG_EXT_SNAPSHOT_EN)
                return;
 
        num_snapshot = (ts_status & GMAC_TIMESTAMP_ATSNS_MASK) >>