net: stmmac: replace the ext_snapshot_en field with a flag
[platform/kernel/linux-rpi.git] / drivers / net / ethernet / stmicro / stmmac / dwmac-intel.c
index d8bcf94..a3d0da4 100644 (file)
@@ -326,7 +326,7 @@ static int intel_crosststamp(ktime_t *device,
        /* Both internal crosstimestamping and external triggered event
         * timestamping cannot be run concurrently.
         */
-       if (priv->plat->ext_snapshot_en)
+       if (priv->plat->flags & STMMAC_FLAG_EXT_SNAPSHOT_EN)
                return -EBUSY;
 
        priv->plat->int_snapshot_en = 1;