Skip to contentSkip to conversation

cpufreq: nforce2: remove DEFINE_PCI_DEVICE_TABLE macro

PATCH Applied Jingoo Han 2 participants 2 messages May 9, 2014 – May 19, 2014 CPU frequency scaling framework

lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH v2 1/1 cpufreq: nforce2: remove DEFINE_PCI_DEVICE_TABLE macro

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

---
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(-)
drivers/cpufreq/cpufreq-nforce2.c +1 -1
index bc447b9..a225809 100644
@@ -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 },
 	{}
 };
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 5 lines · Jingoo Han

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

Queued up for 3.16, thanks!

Quoted 22 lines

---
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(-)
drivers/cpufreq/cpufreq-nforce2.c +1 -1
index bc447b9..a225809 100644
@@ -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 },
 	{}
 };
Signature · 2 lines
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.