diff options
Diffstat (limited to 'target/linux/ath79')
-rw-r--r-- | target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_mdio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_mdio.c b/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_mdio.c index 0bfc1546cd..58aef74872 100644 --- a/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_mdio.c +++ b/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_mdio.c @@ -183,8 +183,8 @@ static int ag71xx_mdio_probe(struct platform_device *pdev) return -ENOMEM; am->mii_regmap = syscon_regmap_lookup_by_phandle(np, "regmap"); - if (!am->mii_regmap) - return -ENOENT; + if (IS_ERR(am->mii_regmap)) + return PTR_ERR(am->mii_regmap); mii_bus = devm_mdiobus_alloc(amdev); if (!mii_bus) |