Lines Matching refs:pdev
60 static int rfkill_regulator_probe(struct platform_device *pdev) in rfkill_regulator_probe() argument
62 struct rfkill_regulator_platform_data *pdata = pdev->dev.platform_data; in rfkill_regulator_probe()
69 dev_err(&pdev->dev, "no platform data\n"); in rfkill_regulator_probe()
74 dev_err(&pdev->dev, "invalid name or type in platform data\n"); in rfkill_regulator_probe()
78 vcc = regulator_get_exclusive(&pdev->dev, "vrfkill"); in rfkill_regulator_probe()
80 dev_err(&pdev->dev, "Cannot get vcc for %s\n", pdata->name); in rfkill_regulator_probe()
91 rf_kill = rfkill_alloc(pdata->name, &pdev->dev, in rfkill_regulator_probe()
100 dev_dbg(&pdev->dev, "Regulator already enabled\n"); in rfkill_regulator_probe()
108 dev_err(&pdev->dev, "Cannot register rfkill device\n"); in rfkill_regulator_probe()
112 platform_set_drvdata(pdev, rfkill_data); in rfkill_regulator_probe()
113 dev_info(&pdev->dev, "%s initialized\n", pdata->name); in rfkill_regulator_probe()
127 static int rfkill_regulator_remove(struct platform_device *pdev) in rfkill_regulator_remove() argument
129 struct rfkill_regulator_data *rfkill_data = platform_get_drvdata(pdev); in rfkill_regulator_remove()