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

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).