Lines Matching defs:pdev
20 mt7988_probe(struct platform_device *pdev)
27 priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL);
32 priv->dev = &pdev->dev;
38 priv->rstc = devm_reset_control_get(&pdev->dev, NULL);
40 dev_err(&pdev->dev, "Couldn't get our reset line\n");
44 base_addr = devm_platform_ioremap_resource(pdev, 0);
46 dev_err(&pdev->dev, "cannot request I/O memory space\n");
50 sw_regmap_config = devm_kzalloc(&pdev->dev, sizeof(*sw_regmap_config), GFP_KERNEL);
59 priv->regmap = devm_regmap_init_mmio(&pdev->dev, base_addr, sw_regmap_config);
67 mt7988_remove(struct platform_device *pdev)
69 struct mt7530_priv *priv = platform_get_drvdata(pdev);
77 static void mt7988_shutdown(struct platform_device *pdev)
79 struct mt7530_priv *priv = platform_get_drvdata(pdev);
86 dev_set_drvdata(&pdev->dev, NULL);