generic: ar8216: skip probe on unused PHY addresses
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 35536
This commit is contained in:
parent
f07a33afc2
commit
4720c75cf7
@ -1962,6 +1962,10 @@ ar8216_probe(struct phy_device *pdev)
|
|||||||
struct ar8216_priv *priv;
|
struct ar8216_priv *priv;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
/* skip PHYs at unused adresses */
|
||||||
|
if (pdev->addr != 0 && pdev->addr != 4)
|
||||||
|
return -ENODEV;
|
||||||
|
|
||||||
priv = kzalloc(sizeof(struct ar8216_priv), GFP_KERNEL);
|
priv = kzalloc(sizeof(struct ar8216_priv), GFP_KERNEL);
|
||||||
if (priv == NULL)
|
if (priv == NULL)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
Loading…
Reference in New Issue
Block a user