linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2] cpufreq: nforce2: remove DEFINE_PCI_DEVICE_TABLE macro
@ 2014-05-09  6:08 Jingoo Han
  2014-05-19 23:17 ` Rafael J. Wysocki
  0 siblings, 1 reply; 2+ messages in thread
From: Jingoo Han @ 2014-05-09  6:08 UTC (permalink / raw)
  To: 'Rafael J. Wysocki'
  Cc: 'Viresh Kumar', linux-pm, 'Jingoo Han'

Don't use DEFINE_PCI_DEVICE_TABLE macro, because this macro
is deprecated.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
---
Changes since v1:
- Added Viresh Kumar's Acked-by.
- Modified commit message to change from 'not preferred' to 'deprecated'. 

 drivers/cpufreq/cpufreq-nforce2.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/cpufreq/cpufreq-nforce2.c b/drivers/cpufreq/cpufreq-nforce2.c
index bc447b9..a225809 100644
--- a/drivers/cpufreq/cpufreq-nforce2.c
+++ b/drivers/cpufreq/cpufreq-nforce2.c
@@ -379,7 +379,7 @@ static struct cpufreq_driver nforce2_driver = {
 };
 
 #ifdef MODULE
-static DEFINE_PCI_DEVICE_TABLE(nforce2_ids) = {
+static const struct pci_device_id nforce2_ids[] = {
 	{ PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE2 },
 	{}
 };
-- 
1.7.10.4



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH V2] cpufreq: nforce2: remove DEFINE_PCI_DEVICE_TABLE macro
  2014-05-09  6:08 [PATCH V2] cpufreq: nforce2: remove DEFINE_PCI_DEVICE_TABLE macro Jingoo Han
@ 2014-05-19 23:17 ` Rafael J. Wysocki
  0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2014-05-19 23:17 UTC (permalink / raw)
  To: Jingoo Han; +Cc: 'Rafael J. Wysocki', 'Viresh Kumar', linux-pm

On Friday, May 09, 2014 03:08:29 PM Jingoo Han wrote:
> Don't use DEFINE_PCI_DEVICE_TABLE macro, because this macro
> is deprecated.
> 
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
> Acked-by: Viresh Kumar <viresh.kumar@linaro.org>

Queued up for 3.16, thanks!

> ---
> Changes since v1:
> - Added Viresh Kumar's Acked-by.
> - Modified commit message to change from 'not preferred' to 'deprecated'. 
> 
>  drivers/cpufreq/cpufreq-nforce2.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/cpufreq/cpufreq-nforce2.c b/drivers/cpufreq/cpufreq-nforce2.c
> index bc447b9..a225809 100644
> --- a/drivers/cpufreq/cpufreq-nforce2.c
> +++ b/drivers/cpufreq/cpufreq-nforce2.c
> @@ -379,7 +379,7 @@ static struct cpufreq_driver nforce2_driver = {
>  };
>  
>  #ifdef MODULE
> -static DEFINE_PCI_DEVICE_TABLE(nforce2_ids) = {
> +static const struct pci_device_id nforce2_ids[] = {
>  	{ PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE2 },
>  	{}
>  };
> 

-- 
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-05-19 23:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-09  6:08 [PATCH V2] cpufreq: nforce2: remove DEFINE_PCI_DEVICE_TABLE macro Jingoo Han
2014-05-19 23:17 ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).