Lines Matching refs:cpu_dev
21 struct device *cpu_dev; in raspberrypi_cpufreq_probe() local
27 cpu_dev = get_cpu_device(0); in raspberrypi_cpufreq_probe()
28 if (!cpu_dev) { in raspberrypi_cpufreq_probe()
33 clk = clk_get(cpu_dev, NULL); in raspberrypi_cpufreq_probe()
35 dev_err(cpu_dev, "Cannot get clock for CPU0\n"); in raspberrypi_cpufreq_probe()
48 ret = dev_pm_opp_add(cpu_dev, rate, 0); in raspberrypi_cpufreq_probe()
56 dev_err(cpu_dev, "Failed to create platform device, %d\n", ret); in raspberrypi_cpufreq_probe()
63 dev_pm_opp_remove_all_dynamic(cpu_dev); in raspberrypi_cpufreq_probe()
70 struct device *cpu_dev; in raspberrypi_cpufreq_remove() local
72 cpu_dev = get_cpu_device(0); in raspberrypi_cpufreq_remove()
73 if (cpu_dev) in raspberrypi_cpufreq_remove()
74 dev_pm_opp_remove_all_dynamic(cpu_dev); in raspberrypi_cpufreq_remove()