From: Gabor Juhos Date: Sun, 10 Feb 2013 13:05:12 +0000 (+0000) Subject: generic: ar8216: skip probe on unused PHY addresses X-Git-Tag: reboot~11317 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=4720c75cf769d40fd03e96d8c565c68895a2f4f7;p=openwrt%2Fstaging%2Fxback.git generic: ar8216: skip probe on unused PHY addresses Signed-off-by: Gabor Juhos SVN-Revision: 35536 --- diff --git a/target/linux/generic/files/drivers/net/phy/ar8216.c b/target/linux/generic/files/drivers/net/phy/ar8216.c index 4547f7c3b1..45b2bd7a65 100644 --- a/target/linux/generic/files/drivers/net/phy/ar8216.c +++ b/target/linux/generic/files/drivers/net/phy/ar8216.c @@ -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;