Lines Matching refs:mdiodev
99 static int lan9303_mdio_probe(struct mdio_device *mdiodev) in lan9303_mdio_probe() argument
104 sw_dev = devm_kzalloc(&mdiodev->dev, sizeof(struct lan9303_mdio), in lan9303_mdio_probe()
109 sw_dev->chip.regmap = devm_regmap_init(&mdiodev->dev, NULL, sw_dev, in lan9303_mdio_probe()
113 dev_err(&mdiodev->dev, "regmap init failed: %d\n", ret); in lan9303_mdio_probe()
118 sw_dev->device = mdiodev; in lan9303_mdio_probe()
119 dev_set_drvdata(&mdiodev->dev, sw_dev); in lan9303_mdio_probe()
120 sw_dev->chip.dev = &mdiodev->dev; in lan9303_mdio_probe()
124 ret = lan9303_probe(&sw_dev->chip, mdiodev->dev.of_node); in lan9303_mdio_probe()
128 dev_info(&mdiodev->dev, "LAN9303 MDIO driver loaded successfully\n"); in lan9303_mdio_probe()
133 static void lan9303_mdio_remove(struct mdio_device *mdiodev) in lan9303_mdio_remove() argument
135 struct lan9303_mdio *sw_dev = dev_get_drvdata(&mdiodev->dev); in lan9303_mdio_remove()
143 static void lan9303_mdio_shutdown(struct mdio_device *mdiodev) in lan9303_mdio_shutdown() argument
145 struct lan9303_mdio *sw_dev = dev_get_drvdata(&mdiodev->dev); in lan9303_mdio_shutdown()
152 dev_set_drvdata(&mdiodev->dev, NULL); in lan9303_mdio_shutdown()