Lines Matching refs:mdiodev
1022 static int ar9331_sw_probe(struct mdio_device *mdiodev) in ar9331_sw_probe() argument
1028 priv = devm_kzalloc(&mdiodev->dev, sizeof(*priv), GFP_KERNEL); in ar9331_sw_probe()
1032 priv->regmap = devm_regmap_init(&mdiodev->dev, &ar9331_sw_bus, priv, in ar9331_sw_probe()
1036 dev_err(&mdiodev->dev, "regmap init failed: %d\n", ret); in ar9331_sw_probe()
1040 priv->sw_reset = devm_reset_control_get(&mdiodev->dev, "switch"); in ar9331_sw_probe()
1042 dev_err(&mdiodev->dev, "missing switch reset\n"); in ar9331_sw_probe()
1046 priv->sbus = mdiodev->bus; in ar9331_sw_probe()
1047 priv->dev = &mdiodev->dev; in ar9331_sw_probe()
1054 ds->dev = &mdiodev->dev; in ar9331_sw_probe()
1059 dev_set_drvdata(&mdiodev->dev, priv); in ar9331_sw_probe()
1081 static void ar9331_sw_remove(struct mdio_device *mdiodev) in ar9331_sw_remove() argument
1083 struct ar9331_sw_priv *priv = dev_get_drvdata(&mdiodev->dev); in ar9331_sw_remove()
1100 dev_set_drvdata(&mdiodev->dev, NULL); in ar9331_sw_remove()
1103 static void ar9331_sw_shutdown(struct mdio_device *mdiodev) in ar9331_sw_shutdown() argument
1105 struct ar9331_sw_priv *priv = dev_get_drvdata(&mdiodev->dev); in ar9331_sw_shutdown()
1112 dev_set_drvdata(&mdiodev->dev, NULL); in ar9331_sw_shutdown()