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
This commit is contained in:
parent
ad0f03d250
commit
9edcd9d3a3
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue