diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-12-22 12:12:41 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-12-22 12:12:41 +0000 |
commit | 7b0651b99b4923c19f8de068f3adfd2c87811537 (patch) | |
tree | 5e48cbfdd36a7a90268a141df48ce94d35f98224 /target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx | |
parent | 2b21ed9dd737b54471cc81b85d424be2a0864e5d (diff) | |
download | upstream-7b0651b99b4923c19f8de068f3adfd2c87811537.tar.gz upstream-7b0651b99b4923c19f8de068f3adfd2c87811537.tar.bz2 upstream-7b0651b99b4923c19f8de068f3adfd2c87811537.zip |
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34849 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx')
-rw-r--r-- | target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c | 2 |
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 1564504486..6dadf94a40 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; |