ath79: fix gmac compatible in ar9330.dtsi and ag71xx_setup_gmac_933x

1. compatible property in node gmac was wrong

2. ag71xx_setup_gmac_933x should use np of gmac-config and
   not the pointer to gmac. gmac is only used for the reg address.

Signed-off-by: Johann Neuhauser <johann@it-neuhauser.de>
This commit is contained in:
Johann Neuhauser 2018-05-12 22:25:35 +02:00 committed by John Crispin
parent 96f4792fdb
commit c15dfbeea0
2 changed files with 2 additions and 2 deletions

View file

@ -104,7 +104,7 @@
};
gmac: gmac@18070000 {
compatible = "qca,qr9330-gmac";
compatible = "qca,ar9330-gmac";
reg = <0x18070000 0x4>;
};
};

View file

@ -1317,7 +1317,7 @@ static int ag71xx_setup_gmac(struct device_node *np)
}
if (of_device_is_compatible(np_dev, "qca,ar9330-gmac"))
ag71xx_setup_gmac_933x(np_dev, base);
ag71xx_setup_gmac_933x(np, base);
iounmap(base);