mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
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
This commit is contained in:
parent
2b21ed9dd7
commit
7b0651b99b
@ -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…
x
Reference in New Issue
Block a user