net: stmmac: replace the has_sun8i field with a flag
[platform/kernel/linux-rpi.git] / drivers / net / ethernet / stmicro / stmmac / dwmac-sun8i.c
index 1e71438..2b5ebb1 100644 (file)
@@ -1227,7 +1227,7 @@ static int sun8i_dwmac_probe(struct platform_device *pdev)
        plat_dat->interface = interface;
        plat_dat->rx_coe = STMMAC_RX_COE_TYPE2;
        plat_dat->tx_coe = 1;
-       plat_dat->has_sun8i = true;
+       plat_dat->flags |= STMMAC_FLAG_HAS_SUN8I;
        plat_dat->bsp_priv = gmac;
        plat_dat->init = sun8i_dwmac_init;
        plat_dat->exit = sun8i_dwmac_exit;