]> git.baikalelectronics.ru Git - kernel.git/commit
sfp: fix non-detection of PHY
authorRussell King <rmk+kernel@armlinux.org.uk>
Fri, 15 Dec 2017 16:09:36 +0000 (16:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Dec 2017 19:57:48 +0000 (14:57 -0500)
commit786cf606125884365d03963db66fd866dde5396c
tree9825e1c238fbe2d3c38b7dbcb46aa2875d25fcf7
parent8e89cb03f65ef4bd0e6f64544960bc51a01fe7fc
sfp: fix non-detection of PHY

The detection of a PHY changed in commit 7ba9a0031311 ("mdio_bus: don't
return NULL from mdiobus_scan()") which now causes sfp to print an
error message.  Update for this change.

Fixes: 655365bc76c4 ("sfp: add SFP module support")
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/sfp.c