From: Andrew Lunn <and...@lunn.ch> Date: Tue, 26 Jan 2016 15:12:30 +0100
> of_phy_find_device() is used to find the phy device associated with a > device node. It is expected the node is for a PHY device, but in fact > it could of been probed as a generic MDIO device. Ensure the device is > a PHY before returning it. > > Fixes: a9049e0c513c ("mdio: Add support for mdio drivers.") > Reported-by: Aaro Koskinen <aaro.koski...@nokia.com> > Reported-by: Olof Johansson <o...@lixom.net> > Signed-off-by: Andrew Lunn <and...@lunn.ch> Applied.