Searched refs:switch_mdiodev (Results 1 – 1 of 1) sorted by relevance
42 static struct mdio_device *switch_mdiodev; variable433 switch_mdiodev = mdio_device_create(bus, 31); in dsa_loop_create_switch_mdiodev()434 if (IS_ERR(switch_mdiodev)) in dsa_loop_create_switch_mdiodev()437 switch_mdiodev->bus_match = dsa_loop_bus_match; in dsa_loop_create_switch_mdiodev()438 switch_mdiodev->dev.platform_data = &dsa_loop_pdata; in dsa_loop_create_switch_mdiodev()440 ret = mdio_device_register(switch_mdiodev); in dsa_loop_create_switch_mdiodev()442 mdio_device_free(switch_mdiodev); in dsa_loop_create_switch_mdiodev()463 mdio_device_remove(switch_mdiodev); in dsa_loop_init()464 mdio_device_free(switch_mdiodev); in dsa_loop_init()475 mdio_device_remove(switch_mdiodev); in dsa_loop_exit()[all …]