Lines Matching refs:mdiodev
1624 mt7530_probe(struct mdio_device *mdiodev) in mt7530_probe() argument
1629 dn = mdiodev->dev.of_node; in mt7530_probe()
1631 priv = devm_kzalloc(&mdiodev->dev, sizeof(*priv), GFP_KERNEL); in mt7530_probe()
1635 priv->ds = dsa_switch_alloc(&mdiodev->dev, DSA_MAX_PORTS); in mt7530_probe()
1644 dev_info(&mdiodev->dev, "MT7530 adapts as multi-chip module\n"); in mt7530_probe()
1646 priv->rstc = devm_reset_control_get(&mdiodev->dev, "mcm"); in mt7530_probe()
1648 dev_err(&mdiodev->dev, "Couldn't get our reset line\n"); in mt7530_probe()
1657 of_device_get_match_data(&mdiodev->dev); in mt7530_probe()
1660 priv->core_pwr = devm_regulator_get(&mdiodev->dev, "core"); in mt7530_probe()
1664 priv->io_pwr = devm_regulator_get(&mdiodev->dev, "io"); in mt7530_probe()
1675 priv->reset = devm_gpiod_get_optional(&mdiodev->dev, "reset", in mt7530_probe()
1678 dev_err(&mdiodev->dev, "Couldn't get our reset line\n"); in mt7530_probe()
1683 priv->bus = mdiodev->bus; in mt7530_probe()
1684 priv->dev = &mdiodev->dev; in mt7530_probe()
1688 dev_set_drvdata(&mdiodev->dev, priv); in mt7530_probe()
1694 mt7530_remove(struct mdio_device *mdiodev) in mt7530_remove() argument
1696 struct mt7530_priv *priv = dev_get_drvdata(&mdiodev->dev); in mt7530_remove()