summaryrefslogtreecommitdiff
path: root/target/linux/ar71xx/files/drivers
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-12-22 12:12:41 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-12-22 12:12:41 +0000
commit9edcd9d3a3da8470c006488ab599e560a596b548 (patch)
tree64ac6f37180c3674d6441d0631cffa1d122b30c0 /target/linux/ar71xx/files/drivers
parentad0f03d2503bdf9f8c50896915ddbb54d4ed2bd0 (diff)
downloadmtk-20170518-9edcd9d3a3da8470c006488ab599e560a596b548.zip
mtk-20170518-9edcd9d3a3da8470c006488ab599e560a596b548.tar.gz
mtk-20170518-9edcd9d3a3da8470c006488ab599e560a596b548.tar.bz2
ar71xx: ag71xx: fix mii_bus_dev sanity check
The mii_bus device is not required if phy_mask is zero. The driver will use a fixed connection if it is not specified. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 34849
Diffstat (limited to 'target/linux/ar71xx/files/drivers')
-rw-r--r--target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c
index 1564504..6dadf94 100644
--- a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c
+++ b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c
@@ -1071,7 +1071,7 @@ static int __devinit ag71xx_probe(struct platform_device *pdev)
goto err_out;
}
- if (pdata->mii_bus_dev == NULL) {
+ if (pdata->mii_bus_dev == NULL && pdata->phy_mask) {
dev_err(&pdev->dev, "no MII bus device specified\n");
err = -EINVAL;
goto err_out;