return -ENODEV;
}
- return cpufreq_register_driver(&db8500_cpufreq_driver);
+ armss_clk = clk_get(&pdev->dev, "armss");
+ if (IS_ERR(armss_clk)) {
+ pr_err("dbx500-cpufreq: Failed to get armss clk\n");
+ return PTR_ERR(armss_clk);
+ }
+
+ pr_info("dbx500-cpufreq: Available frequencies:\n");
+ while (freq_table[i].frequency != CPUFREQ_TABLE_END) {
+ pr_info(" %d Mhz\n", freq_table[i].frequency/1000);
+ i++;
+ }
+
+ return cpufreq_register_driver(&dbx500_cpufreq_driver);
}
- static struct platform_driver db8500_cpufreq_plat_driver = {
+ static struct platform_driver dbx500_cpufreq_plat_driver = {
.driver = {
- .name = "cpufreq-u8500",
+ .name = "cpufreq-ux500",
.owner = THIS_MODULE,
},
- .probe = db8500_cpufreq_probe,
+ .probe = dbx500_cpufreq_probe,
};
- static int __init db8500_cpufreq_register(void)
+ static int __init dbx500_cpufreq_register(void)
{
- pr_info("cpufreq for DB8500 started\n");
- return platform_driver_register(&db8500_cpufreq_plat_driver);
- if (!cpu_is_u8500_family())
- return -ENODEV;
-
+ return platform_driver_register(&dbx500_cpufreq_plat_driver);
}
- device_initcall(db8500_cpufreq_register);
+ device_initcall(dbx500_cpufreq_register);
MODULE_LICENSE("GPL v2");
- MODULE_DESCRIPTION("cpufreq driver for DB8500");
+ MODULE_DESCRIPTION("cpufreq driver for DBX500");