Re: [PATCH] macb: fix mdiobus_scan() error check
From: David Miller <davem@davemloft.net>
Date: 2016-05-03 19:04:28
From: David Miller <davem@davemloft.net>
Date: 2016-05-03 19:04:28
From: Sergei Shtylyov <redacted> Date: Sun, 01 May 2016 01:47:36 +0300
Now mdiobus_scan() returns ERR_PTR(-ENODEV) instead of NULL if the PHY
device ID was read as all ones. As this was not an error before, this
value should be filtered out now in this driver.
Fixes: b74766a0a0fe ("phylib: don't return NULL from get_phy_device()")
Signed-off-by: Sergei Shtylyov <redacted>Applied.