@@ -110,7 +110,6 @@ static void __init zynq_init_late(void)
*/
static void __init zynq_init_machine(void)
{
- struct platform_device_info devinfo = { .name = "cpufreq-dt", };
struct soc_device_attribute *soc_dev_attr;
struct soc_device *soc_dev;
struct device *parent = NULL;
@@ -145,7 +144,6 @@ static void __init zynq_init_machine(void)
of_platform_populate(NULL, of_default_bus_match_table, NULL, parent);
platform_device_register(&zynq_cpuidle_device);
- platform_device_register_full(&devinfo);
zynq_slcr_init();
}
@@ -32,6 +32,8 @@ static const struct of_device_id compatible_machine_match[] = {
{ .compatible = "renesas,sh7372", .data = "cpufreq-dt" },
{ .compatible = "renesas,sh73a0", .data = "cpufreq-dt" },
+ { .compatible = "xlnx,zynq-7000", .data = "cpufreq-dt" },
+
/* BLACKLIST of existing users of arm-bL-cpufreq-dt below */
/* BLACKLIST of existing users of other drivers below */
We now have a common interface for create platform device required to probe cpufreq-dt driver (and others as well). Lets create devices from dt_device.c instead of platform specific code. For zynq, we are updating the blacklist instead of DT because the newer kernel should be backwards compatible with older DT as well. We can update the "compatible" property in DT but it wouldn't make a difference as we already have imx in the blacklist. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> --- arch/arm/mach-zynq/common.c | 2 -- drivers/cpufreq/dt_device.c | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-)