Message ID | 20160302023822.GM16437@vireshk-i7 |
---|---|
State | New |
Headers | show |
diff --git a/drivers/cpufreq/acpi-cpufreq.c b/drivers/cpufreq/acpi-cpufreq.c index 51eef87bbc37..26c026a34e1e 100644 --- a/drivers/cpufreq/acpi-cpufreq.c +++ b/drivers/cpufreq/acpi-cpufreq.c @@ -937,7 +937,7 @@ static void acpi_cpufreq_boost_exit(void) static int __init acpi_cpufreq_init(void) { - int ret; + int ret, cpb_removed = 0; if (acpi_disabled) return -ENODEV; @@ -967,6 +967,7 @@ static int __init acpi_cpufreq_init(void) for (attr = acpi_cpufreq_attr; *attr; attr++) if (*attr == &cpb) { *attr = NULL; + cpb_removed = 1; break; } }