drivers: net: Remove device_node checks with of_mdiobus_register()
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 15 May 2018 23:56:19 +0000 (16:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 May 2018 18:20:36 +0000 (14:20 -0400)
commit00e798c7d1ea5c4514401f17db8300db934291cb
tree831558f37e80e04ed2caf7cb7fc36bd397b52cdb
parent6d07a68a59274fa168a3ddfbcfe5df029ba0afed
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: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
Reviewed-by: Antoine Tenart <antoine.tenart@bootlin.com>
Reviewed-by: Jose Abreu <joabreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/bcm_sf2.c
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/ethernet/cadence/macb_main.c
drivers/net/ethernet/freescale/fec_main.c
drivers/net/ethernet/marvell/mvmdio.c
drivers/net/ethernet/renesas/sh_eth.c
drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
drivers/net/ethernet/ti/davinci_mdio.c
drivers/net/phy/mdio-gpio.c
drivers/net/phy/mdio-mscc-miim.c
drivers/net/usb/lan78xx.c