Skip to content

Commit d84c97f

Browse files
committed
Merge branches 'pm-cpufreq' and 'pm-cpuidle'
* pm-cpufreq: cpufreq: ti-cpufreq: Support additional am43xx platforms cpufreq: dt-platdev: Add some missing platforms to the blacklist * pm-cpuidle: ARM: cpuidle: Avoid memleak if init fail
3 parents 1419d03 + 039cc1c + ed40fad commit d84c97f

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

drivers/cpufreq/cpufreq-dt-platdev.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,18 @@ static const struct of_device_id whitelist[] __initconst = {
106106
* platforms using "operating-points-v2" property.
107107
*/
108108
static const struct of_device_id blacklist[] __initconst = {
109+
{ .compatible = "calxeda,highbank", },
110+
{ .compatible = "calxeda,ecx-2000", },
111+
112+
{ .compatible = "marvell,armadaxp", },
113+
114+
{ .compatible = "nvidia,tegra124", },
115+
116+
{ .compatible = "st,stih407", },
117+
{ .compatible = "st,stih410", },
118+
119+
{ .compatible = "sigma,tango4", },
120+
109121
{ }
110122
};
111123

drivers/cpufreq/ti-cpufreq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ static int ti_cpufreq_setup_syscon_register(struct ti_cpufreq_data *opp_data)
190190

191191
static const struct of_device_id ti_cpufreq_of_match[] = {
192192
{ .compatible = "ti,am33xx", .data = &am3x_soc_data, },
193-
{ .compatible = "ti,am4372", .data = &am4x_soc_data, },
193+
{ .compatible = "ti,am43", .data = &am4x_soc_data, },
194194
{ .compatible = "ti,dra7", .data = &dra7_soc_data },
195195
{},
196196
};

drivers/cpuidle/cpuidle-arm.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,13 @@ static int __init arm_idle_init(void)
104104
ret = dt_init_idle_driver(drv, arm_idle_state_match, 1);
105105
if (ret <= 0) {
106106
ret = ret ? : -ENODEV;
107-
goto out_fail;
107+
goto init_fail;
108108
}
109109

110110
ret = cpuidle_register_driver(drv);
111111
if (ret) {
112112
pr_err("Failed to register cpuidle driver\n");
113-
goto out_fail;
113+
goto init_fail;
114114
}
115115

116116
/*
@@ -149,6 +149,8 @@ static int __init arm_idle_init(void)
149149
}
150150

151151
return 0;
152+
init_fail:
153+
kfree(drv);
152154
out_fail:
153155
while (--cpu >= 0) {
154156
dev = per_cpu(cpuidle_devices, cpu);

0 commit comments

Comments
 (0)