]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc24c7c99e086f3a76fdcdc63ea4cfce3ef54d4a6
treed9ee62428ec1dd6d4a075704640601e7e6826834
parentc06f1a6f357bbcdf2747e9d50146f2bc2cbf97c0
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