net: ethernet: ti: am65-cpsw-nuss: use of_platform_device_create() for mdio
authorGrygorii Strashko <grygorii.strashko@ti.com>
Wed, 6 May 2020 18:13:59 +0000 (21:13 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 May 2020 00:51:03 +0000 (17:51 -0700)
commita45cfcc69a2519463db0e18db5b7f9c7739f559d
tree2e033fb845c84d5a8f512aa786294fcd944c70b8
parenta8c9baf28c484a56a0cb1f92e9f740112d1cc567
net: ethernet: ti: am65-cpsw-nuss: use of_platform_device_create() for mdio

The MCU CPSW expected to populate only MDIO device, but follow up patches
will add "compatible" property to the MCU CPSW CPTS node which will cause
creation of CPTS device and MCU CPSW init failure. Hence, switch to use
of_platform_device_create() instead of of_platform_populate() for MDIO
device population.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/am65-cpsw-nuss.c
drivers/net/ethernet/ti/am65-cpsw-nuss.h