Message ID | 000501cf6b4d$1941cbf0$4bc563d0$%han@samsung.com (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
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 }, > {} > }; >
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 }, {} };