drivers/of/of_mdio.c:fix of_mdiobus_register()
authorDajun Jin <adajunjin@gmail.com>
Tue, 3 Mar 2020 04:24:21 +0000 (20:24 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Mar 2020 03:01:51 +0000 (19:01 -0800)
commit209c65b61d94344522c41a83cd6ce51aac5fd0a4
treed9ee62428ec1dd6d4a075704640601e7e6826834
parent116ca924aea664141afa86a1425edc3fcda0d06f
drivers/of/of_mdio.c:fix of_mdiobus_register()

When registers a phy_device successful, should terminate the loop
or the phy_device would be registered in other addr. If there are
multiple PHYs without reg properties, it will go wrong.

Signed-off-by: Dajun Jin <adajunjin@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/of/of_mdio.c