cpufreq: dt: Add register helper
Cpufreq-dt currently exports no functions. This means that drivers that are based on cpufreq-dt have no way of establishing a depmod dependency on it. This helper allows that link. Signed-off-by: Aaron Kling <webgeek1234@gmail.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>pull/1309/head
parent
3254f54a3a
commit
d812734842
|
|
@ -329,6 +329,17 @@ static struct platform_driver dt_cpufreq_platdrv = {
|
|||
};
|
||||
module_platform_driver(dt_cpufreq_platdrv);
|
||||
|
||||
struct platform_device *cpufreq_dt_pdev_register(struct device *dev)
|
||||
{
|
||||
struct platform_device_info cpufreq_dt_devinfo = {};
|
||||
|
||||
cpufreq_dt_devinfo.name = "cpufreq-dt";
|
||||
cpufreq_dt_devinfo.parent = dev;
|
||||
|
||||
return platform_device_register_full(&cpufreq_dt_devinfo);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(cpufreq_dt_pdev_register);
|
||||
|
||||
MODULE_ALIAS("platform:cpufreq-dt");
|
||||
MODULE_AUTHOR("Viresh Kumar <viresh.kumar@linaro.org>");
|
||||
MODULE_AUTHOR("Shawn Guo <shawn.guo@linaro.org>");
|
||||
|
|
|
|||
|
|
@ -22,4 +22,6 @@ struct cpufreq_dt_platform_data {
|
|||
int (*resume)(struct cpufreq_policy *policy);
|
||||
};
|
||||
|
||||
struct platform_device *cpufreq_dt_pdev_register(struct device *dev);
|
||||
|
||||
#endif /* __CPUFREQ_DT_H__ */
|
||||
|
|
|
|||
Loading…
Reference in New Issue