net: stmmac: snps, dwmac-mdio MDIOs are automatically registered
authorCorentin Labbe <clabbe.montjoie@gmail.com>
Tue, 24 Oct 2017 17:57:12 +0000 (19:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Oct 2017 02:58:49 +0000 (11:58 +0900)
stmmac bindings docs said that its mdio node must have
compatible = "snps,dwmac-mdio";
Since dwmac-sun8i does not have any good reasons to not doing it, all
their MDIO node must have it.

Since these compatible is automatically registered, dwmac-sun8i compatible
does not need to be in need_mdio_ids.

Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c

index 8a280b48e3a9fd0c7ada914f2ceea3618e9e34cf..9e616da0745d69e3cf8089dd08c356286c07a936 100644 (file)
@@ -311,10 +311,6 @@ static int stmmac_dt_phy(struct plat_stmmacenet_data *plat,
        bool mdio = true;
        static const struct of_device_id need_mdio_ids[] = {
                { .compatible = "snps,dwc-qos-ethernet-4.10" },
-               { .compatible = "allwinner,sun8i-a83t-emac" },
-               { .compatible = "allwinner,sun8i-h3-emac" },
-               { .compatible = "allwinner,sun8i-v3s-emac" },
-               { .compatible = "allwinner,sun50i-a64-emac" },
                {},
        };