Lines Matching refs:mdiodev
1025 static int ar9331_sw_probe(struct mdio_device *mdiodev) in ar9331_sw_probe() argument
1031 priv = devm_kzalloc(&mdiodev->dev, sizeof(*priv), GFP_KERNEL); in ar9331_sw_probe()
1035 priv->regmap = devm_regmap_init(&mdiodev->dev, &ar9331_sw_bus, priv, in ar9331_sw_probe()
1039 dev_err(&mdiodev->dev, "regmap init failed: %d\n", ret); in ar9331_sw_probe()
1043 priv->sw_reset = devm_reset_control_get(&mdiodev->dev, "switch"); in ar9331_sw_probe()
1045 dev_err(&mdiodev->dev, "missing switch reset\n"); in ar9331_sw_probe()
1049 priv->sbus = mdiodev->bus; in ar9331_sw_probe()
1050 priv->dev = &mdiodev->dev; in ar9331_sw_probe()
1057 ds->dev = &mdiodev->dev; in ar9331_sw_probe()
1062 dev_set_drvdata(&mdiodev->dev, priv); in ar9331_sw_probe()
1084 static void ar9331_sw_remove(struct mdio_device *mdiodev) in ar9331_sw_remove() argument
1086 struct ar9331_sw_priv *priv = dev_get_drvdata(&mdiodev->dev); in ar9331_sw_remove()
1104 static void ar9331_sw_shutdown(struct mdio_device *mdiodev) in ar9331_sw_shutdown() argument
1106 struct ar9331_sw_priv *priv = dev_get_drvdata(&mdiodev->dev); in ar9331_sw_shutdown()
1113 dev_set_drvdata(&mdiodev->dev, NULL); in ar9331_sw_shutdown()