]> git.karo-electronics.de Git - linux-beck.git/commitdiff
cpufreq / CPPC: Add MODULE_DEVICE_TABLE for cppc_cpufreq driver
authorPrakash, Prashanth <pprakash@codeaurora.org>
Fri, 14 Oct 2016 18:00:23 +0000 (12:00 -0600)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 21 Oct 2016 13:11:23 +0000 (15:11 +0200)
MODULE_DEVICE_TABLE is added so that CPPC cpufreq module can be
automatically loaded when we have a acpi processor device with
"ACPI0007" hid.

Signed-off-by: Prashanth Prakash <pprakash@codeaurora.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cppc_cpufreq.c

index 4852d9efe74e7c470169b25babbb3355e8a5a0b6..e82bb3c30b923c085c981bf517d689b414646c09 100644 (file)
@@ -247,3 +247,10 @@ MODULE_DESCRIPTION("CPUFreq driver based on the ACPI CPPC v5.0+ spec");
 MODULE_LICENSE("GPL");
 
 late_initcall(cppc_cpufreq_init);
+
+static const struct acpi_device_id cppc_acpi_ids[] = {
+       {ACPI_PROCESSOR_DEVICE_HID, },
+       {}
+};
+
+MODULE_DEVICE_TABLE(acpi, cppc_acpi_ids);