USB: remove DEFINE_PCI_DEVICE_TABLE macro
authorJingoo Han <jg1.han@samsung.com>
Mon, 2 Dec 2013 23:27:58 +0000 (08:27 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2013 00:58:47 +0000 (16:58 -0800)
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>
drivers/usb/dwc3/dwc3-pci.c
drivers/usb/gadget/amd5536udc.c
drivers/usb/gadget/pch_udc.c
drivers/usb/host/uhci-pci.c

index 31443aeedcdbf374a6d663e69087ba18f9c37612..665686e7c8cd4342afe150a53dcf3603dac8fe5d 100644 (file)
@@ -182,7 +182,7 @@ static void dwc3_pci_remove(struct pci_dev *pci)
        pci_disable_device(pci);
 }
 
-static DEFINE_PCI_DEVICE_TABLE(dwc3_pci_id_table) = {
+static const struct pci_device_id dwc3_pci_id_table[] = {
        {
                PCI_DEVICE(PCI_VENDOR_ID_SYNOPSYS,
                                PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3),
index 54a1e2954cea9d53384085e04b91d65418fb575e..f0ff4a675e9d738a0423b080371e8c77f2504fac 100644 (file)
@@ -3338,7 +3338,7 @@ static int udc_remote_wakeup(struct udc *dev)
 }
 
 /* PCI device parameters */
-static DEFINE_PCI_DEVICE_TABLE(pci_id) = {
+static const struct pci_device_id pci_id[] = {
        {
                PCI_DEVICE(PCI_VENDOR_ID_AMD, 0x2096),
                .class =        (PCI_CLASS_SERIAL_USB << 8) | 0xfe,
index 32d5e923750b017a479d394e51ba09c991c8ef4d..78a3d9289816956b90eee811023fca9da4c2a3eb 100644 (file)
@@ -3210,7 +3210,7 @@ finished:
        return retval;
 }
 
-static DEFINE_PCI_DEVICE_TABLE(pch_udc_pcidev_id) = {
+static const struct pci_device_id pch_udc_pcidev_id[] = {
        {
                PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_EG20T_UDC),
                .class = (PCI_CLASS_SERIAL_USB << 8) | 0xfe,
index 4cd79888804bb679b1ff85f850bb6d2e362d8fd3..940304c33224574439cea18d83f24b6bc763ba10 100644 (file)
@@ -279,7 +279,7 @@ static const struct hc_driver uhci_driver = {
        .hub_control =          uhci_hub_control,
 };
 
-static DEFINE_PCI_DEVICE_TABLE(uhci_pci_ids) = { {
+static const struct pci_device_id uhci_pci_ids[] = { {
        /* handle any USB UHCI controller */
        PCI_DEVICE_CLASS(PCI_CLASS_SERIAL_USB_UHCI, ~0),
        .driver_data =  (unsigned long) &uhci_driver,