[PATCH 2/5] USB: OHCI: use DEFINE_PCI_DEVICE_TABLE macro

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This macro is used to create a struct pci_device_id array.

Signed-off-by: Jingoo Han <jg1.han@xxxxxxxxxxx>
---
 drivers/usb/host/ohci-pci.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/host/ohci-pci.c b/drivers/usb/host/ohci-pci.c
index 90879e9..762e20a 100644
--- a/drivers/usb/host/ohci-pci.c
+++ b/drivers/usb/host/ohci-pci.c
@@ -164,7 +164,7 @@ static int ohci_quirk_amd700(struct usb_hcd *hcd)
 }
 
 /* List of quirks for OHCI */
-static const struct pci_device_id ohci_pci_quirks[] = {
+static DEFINE_PCI_DEVICE_TABLE(ohci_pci_quirks) = {
 	{
 		PCI_DEVICE(PCI_VENDOR_ID_AMD, 0x740c),
 		.driver_data = (unsigned long)ohci_quirk_amd756,
@@ -256,7 +256,7 @@ static const struct ohci_driver_overrides pci_overrides __initconst = {
 	.reset =		ohci_pci_reset,
 };
 
-static const struct pci_device_id pci_ids [] = { {
+static DEFINE_PCI_DEVICE_TABLE(pci_ids) = { {
 	/* handle any USB OHCI controller */
 	PCI_DEVICE_CLASS(PCI_CLASS_SERIAL_USB_OHCI, ~0),
 	.driver_data =	(unsigned long) &ohci_pci_hc_driver,
-- 
1.7.10.4


--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux