]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitae7a5df75d22a2ef8bfcd00304fedfa5b447553d
tree2e033fb845c84d5a8f512aa786294fcd944c70b8
parentc6d7f966fa1be2af3fad8fd6d4686895d31d3855
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