Message ID | 56F40328.5090001@rock-chips.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 24-03-16, 23:09, Finley Xiao wrote: > --- a/arch/arm64/boot/dts/rockchip/rk3366.dtsi > +++ b/arch/arm64/boot/dts/rockchip/rk3366.dtsi > + cpufreq { > + compatible = "***,***"; > + } > > Does it create a DT node for a dummy device too ? Yes, its not allowed.
--- a/drivers/cpufreq/cpufreq-dt.c +++ b/drivers/cpufreq/cpufreq-dt.c @@ -470,10 +470,16 @@ static int dt_cpufreq_remove(struct platform_device *pdev) cpufreq_unregister_driver(&dt_cpufreq_driver); return 0; } +static const struct of_device_id dt_cpufreq_of_match[] = { + { .compatible = "***,***", }, + { } +}; +MODULE_DEVICE_TABLE(of, dt_cpufreq_of_match); static struct platform_driver dt_cpufreq_platdrv = { .driver = { .name = "cpufreq-dt", + .of_match_table = dt_cpufreq_of_match, }, --- a/arch/arm64/boot/dts/rockchip/rk3366.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3366.dtsi