cpufreq: nforce2: remove DEFINE_PCI_DEVICE_TABLE macro
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.
Signed-off-by Jingoo Han <[email protected]>
Acked-by Viresh Kumar <[email protected]>
---
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
@@ -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
Rafael J. Wysocki
AppliedQuoted 5 lines · Jingoo Han
Don't use
DEFINE_PCI_DEVICE_TABLEmacro, because this macro is deprecated.Signed-off-by Jingoo Han <[email protected]>Acked-by Viresh Kumar <[email protected]>
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@@ -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.