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>
This commit is contained in:
parent
a458677db6
commit
2fd3f65132
|
@ -182,7 +182,7 @@ static void dwc3_pci_remove(struct pci_dev *pci)
|
||||||
pci_disable_device(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(PCI_VENDOR_ID_SYNOPSYS,
|
||||||
PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3),
|
PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3),
|
||||||
|
|
|
@ -3338,7 +3338,7 @@ static int udc_remote_wakeup(struct udc *dev)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* PCI device parameters */
|
/* 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),
|
PCI_DEVICE(PCI_VENDOR_ID_AMD, 0x2096),
|
||||||
.class = (PCI_CLASS_SERIAL_USB << 8) | 0xfe,
|
.class = (PCI_CLASS_SERIAL_USB << 8) | 0xfe,
|
||||||
|
|
|
@ -3210,7 +3210,7 @@ finished:
|
||||||
return retval;
|
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),
|
PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_EG20T_UDC),
|
||||||
.class = (PCI_CLASS_SERIAL_USB << 8) | 0xfe,
|
.class = (PCI_CLASS_SERIAL_USB << 8) | 0xfe,
|
||||||
|
|
|
@ -279,7 +279,7 @@ static const struct hc_driver uhci_driver = {
|
||||||
.hub_control = uhci_hub_control,
|
.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 */
|
/* handle any USB UHCI controller */
|
||||||
PCI_DEVICE_CLASS(PCI_CLASS_SERIAL_USB_UHCI, ~0),
|
PCI_DEVICE_CLASS(PCI_CLASS_SERIAL_USB_UHCI, ~0),
|
||||||
.driver_data = (unsigned long) &uhci_driver,
|
.driver_data = (unsigned long) &uhci_driver,
|
||||||
|
|
Loading…
Reference in New Issue