Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

USB: remove DEFINE_PCI_DEVICE_TABLE macro

Don't use DEFINE_PCI_DEVICE_TABLE macro, because this macro
is not preferred.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jingoo Han and committed by
Greg Kroah-Hartman
2fd3f651 a458677d

+4 -4
+1 -1
drivers/usb/dwc3/dwc3-pci.c
··· 182 182 pci_disable_device(pci); 183 183 } 184 184 185 - static DEFINE_PCI_DEVICE_TABLE(dwc3_pci_id_table) = { 185 + static const struct pci_device_id dwc3_pci_id_table[] = { 186 186 { 187 187 PCI_DEVICE(PCI_VENDOR_ID_SYNOPSYS, 188 188 PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3),
+1 -1
drivers/usb/gadget/amd5536udc.c
··· 3338 3338 } 3339 3339 3340 3340 /* PCI device parameters */ 3341 - static DEFINE_PCI_DEVICE_TABLE(pci_id) = { 3341 + static const struct pci_device_id pci_id[] = { 3342 3342 { 3343 3343 PCI_DEVICE(PCI_VENDOR_ID_AMD, 0x2096), 3344 3344 .class = (PCI_CLASS_SERIAL_USB << 8) | 0xfe,
+1 -1
drivers/usb/gadget/pch_udc.c
··· 3210 3210 return retval; 3211 3211 } 3212 3212 3213 - static DEFINE_PCI_DEVICE_TABLE(pch_udc_pcidev_id) = { 3213 + static const struct pci_device_id pch_udc_pcidev_id[] = { 3214 3214 { 3215 3215 PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_EG20T_UDC), 3216 3216 .class = (PCI_CLASS_SERIAL_USB << 8) | 0xfe,
+1 -1
drivers/usb/host/uhci-pci.c
··· 279 279 .hub_control = uhci_hub_control, 280 280 }; 281 281 282 - static DEFINE_PCI_DEVICE_TABLE(uhci_pci_ids) = { { 282 + static const struct pci_device_id uhci_pci_ids[] = { { 283 283 /* handle any USB UHCI controller */ 284 284 PCI_DEVICE_CLASS(PCI_CLASS_SERIAL_USB_UHCI, ~0), 285 285 .driver_data = (unsigned long) &uhci_driver,