Skip to content
Commit 00e798c7 authored by Florian Fainelli's avatar Florian Fainelli Committed by David S. Miller
Browse files

drivers: net: Remove device_node checks with of_mdiobus_register()



A number of drivers have the following pattern:

if (np)
	of_mdiobus_register()
else
	mdiobus_register()

which the implementation of of_mdiobus_register() now takes care of.
Remove that pattern in drivers that strictly adhere to it.

Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Reviewed-by: default avatarGrygorii Strashko <grygorii.strashko@ti.com>
Reviewed-by: default avatarFugang Duan <fugang.duan@nxp.com>
Reviewed-by: default avatarAntoine Tenart <antoine.tenart@bootlin.com>
Reviewed-by: default avatarJose Abreu <joabreu@synopsys.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6d07a68a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment