Lines Matching refs:pdev

60 	struct platform_device *pdev = to_platform_device(dev);  in spear_thermal_suspend()  local
61 struct thermal_zone_device *spear_thermal = platform_get_drvdata(pdev); in spear_thermal_suspend()
77 struct platform_device *pdev = to_platform_device(dev); in spear_thermal_resume() local
78 struct thermal_zone_device *spear_thermal = platform_get_drvdata(pdev); in spear_thermal_resume()
85 dev_err(&pdev->dev, "Can't enable clock\n"); in spear_thermal_resume()
102 static int spear_thermal_probe(struct platform_device *pdev) in spear_thermal_probe() argument
106 struct device_node *np = pdev->dev.of_node; in spear_thermal_probe()
111 dev_err(&pdev->dev, "Failed: DT Pdata not passed\n"); in spear_thermal_probe()
115 stdev = devm_kzalloc(&pdev->dev, sizeof(*stdev), GFP_KERNEL); in spear_thermal_probe()
120 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in spear_thermal_probe()
121 stdev->thermal_base = devm_ioremap_resource(&pdev->dev, res); in spear_thermal_probe()
125 stdev->clk = devm_clk_get(&pdev->dev, NULL); in spear_thermal_probe()
127 dev_err(&pdev->dev, "Can't get clock\n"); in spear_thermal_probe()
133 dev_err(&pdev->dev, "Can't enable clock\n"); in spear_thermal_probe()
143 dev_err(&pdev->dev, "thermal zone device is NULL\n"); in spear_thermal_probe()
148 platform_set_drvdata(pdev, spear_thermal); in spear_thermal_probe()
161 static int spear_thermal_exit(struct platform_device *pdev) in spear_thermal_exit() argument
164 struct thermal_zone_device *spear_thermal = platform_get_drvdata(pdev); in spear_thermal_exit()