Skip to content

Commit

Permalink
net-next: ethernet: mediatek: change the compatible string
Browse files Browse the repository at this point in the history
When the binding was defined, I was not aware that mt2701 was an earlier
version of the SoC. For sake of consistency, the ethernet driver should
use mt2701 inside the compat string as this is the earliest SoC with the
ethernet core.

The ethernet driver is currently of no real use until we finish and
upstream the DSA driver. There are no users of this binding yet. It should
be safe to fix this now before it is too late and we need to provide
backward compatibility for the mt7623-eth compat string.

Reported-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: John Crispin <john@phrozen.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
blogic authored and davem330 committed Jan 25, 2017
1 parent 61976ff commit 8b901f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/mediatek/mtk_eth_soc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2517,7 +2517,7 @@ static int mtk_remove(struct platform_device *pdev)
}

const struct of_device_id of_mtk_match[] = {
{ .compatible = "mediatek,mt7623-eth" },
{ .compatible = "mediatek,mt2701-eth" },
{},
};
MODULE_DEVICE_TABLE(of, of_mtk_match);
Expand Down

0 comments on commit 8b901f6

Please sign in to comment.