mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
generic: ar8216: skip probe on unused PHY addresses
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35536 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -1962,6 +1962,10 @@ ar8216_probe(struct phy_device *pdev)
|
||||
struct ar8216_priv *priv;
|
||||
int ret;
|
||||
|
||||
/* skip PHYs at unused adresses */
|
||||
if (pdev->addr != 0 && pdev->addr != 4)
|
||||
return -ENODEV;
|
||||
|
||||
priv = kzalloc(sizeof(struct ar8216_priv), GFP_KERNEL);
|
||||
if (priv == NULL)
|
||||
return -ENOMEM;
|
||||
|
||||
Reference in New Issue
Block a user