Lines Matching refs:pdev
58 static int rfkill_regulator_probe(struct platform_device *pdev) in rfkill_regulator_probe() argument
60 struct rfkill_regulator_platform_data *pdata = pdev->dev.platform_data; in rfkill_regulator_probe()
67 dev_err(&pdev->dev, "no platform data\n"); in rfkill_regulator_probe()
72 dev_err(&pdev->dev, "invalid name or type in platform data\n"); in rfkill_regulator_probe()
76 vcc = regulator_get_exclusive(&pdev->dev, "vrfkill"); in rfkill_regulator_probe()
78 dev_err(&pdev->dev, "Cannot get vcc for %s\n", pdata->name); in rfkill_regulator_probe()
89 rf_kill = rfkill_alloc(pdata->name, &pdev->dev, in rfkill_regulator_probe()
98 dev_dbg(&pdev->dev, "Regulator already enabled\n"); in rfkill_regulator_probe()
106 dev_err(&pdev->dev, "Cannot register rfkill device\n"); in rfkill_regulator_probe()
110 platform_set_drvdata(pdev, rfkill_data); in rfkill_regulator_probe()
111 dev_info(&pdev->dev, "%s initialized\n", pdata->name); in rfkill_regulator_probe()
125 static int rfkill_regulator_remove(struct platform_device *pdev) in rfkill_regulator_remove() argument
127 struct rfkill_regulator_data *rfkill_data = platform_get_drvdata(pdev); in rfkill_regulator_remove()