Lines Matching defs:priv
23 struct mt7530_priv *priv;
27 priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL);
28 if (!priv)
31 priv->bus = NULL;
32 priv->dev = &pdev->dev;
34 ret = mt7530_probe_common(priv);
38 priv->rstc = devm_reset_control_get(&pdev->dev, NULL);
39 if (IS_ERR(priv->rstc)) {
41 return PTR_ERR(priv->rstc);
59 priv->regmap = devm_regmap_init_mmio(&pdev->dev, base_addr, sw_regmap_config);
60 if (IS_ERR(priv->regmap))
61 return PTR_ERR(priv->regmap);
63 return dsa_register_switch(priv->ds);
69 struct mt7530_priv *priv = platform_get_drvdata(pdev);
71 if (priv)
72 mt7530_remove_common(priv);
79 struct mt7530_priv *priv = platform_get_drvdata(pdev);
81 if (!priv)
84 dsa_switch_shutdown(priv->ds);