diff mbox

cpufreq/CPPC: Add MODULE_DEVICE_TABLE for cppc_cpufreq driver

Message ID 1476468023-6917-1-git-send-email-pprakash@codeaurora.org (mailing list archive)
State Accepted, archived
Delegated to: Rafael Wysocki
Headers show

Commit Message

Prakash, Prashanth Oct. 14, 2016, 6 p.m. UTC
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>
---
 drivers/cpufreq/cppc_cpufreq.c | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Rafael J. Wysocki Nov. 14, 2016, 12:21 a.m. UTC | #1
On Friday, October 14, 2016 12:00:23 PM Prashanth Prakash wrote:
> 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>
> ---
>  drivers/cpufreq/cppc_cpufreq.c | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/drivers/cpufreq/cppc_cpufreq.c b/drivers/cpufreq/cppc_cpufreq.c
> index 4852d9e..e82bb3c 100644
> --- a/drivers/cpufreq/cppc_cpufreq.c
> +++ b/drivers/cpufreq/cppc_cpufreq.c
> @@ -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);

Applied.

Thanks,
Rafael

--
To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Prakash, Prashanth Nov. 14, 2016, 9:16 p.m. UTC | #2
On 11/13/2016 5:21 PM, Rafael J. Wysocki wrote:
> On Friday, October 14, 2016 12:00:23 PM Prashanth Prakash wrote:
>> 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>
>> ---
>>  drivers/cpufreq/cppc_cpufreq.c | 7 +++++++
>>  1 file changed, 7 insertions(+)
>>
>> diff --git a/drivers/cpufreq/cppc_cpufreq.c b/drivers/cpufreq/cppc_cpufreq.c
>> index 4852d9e..e82bb3c 100644
>> --- a/drivers/cpufreq/cppc_cpufreq.c
>> +++ b/drivers/cpufreq/cppc_cpufreq.c
>> @@ -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);
> Applied.
Thanks Rafael!
--
To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/cpufreq/cppc_cpufreq.c b/drivers/cpufreq/cppc_cpufreq.c
index 4852d9e..e82bb3c 100644
--- a/drivers/cpufreq/cppc_cpufreq.c
+++ b/drivers/cpufreq/cppc_cpufreq.c
@@ -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);