@@ -644,7 +644,7 @@ int pcie_port_device_register(struct pci_dev *dev)
* this port device.
*/
static int pcie_portdrv_probe(struct pci_dev *dev,
- const struct pci_device_id *id)
+ const struct pci_device_id *id)
{
int status;
@@ -759,13 +759,11 @@ static void pcie_portdrv_err_resume(struct pci_dev *dev)
device_for_each_child(&dev->dev, NULL, err_resume_iter);
}
-/*
- * LINUX Device Driver Model
- */
static const struct pci_device_id port_pci_ids[] = { {
/* handle any PCI-Express port */
PCI_DEVICE_CLASS(((PCI_CLASS_BRIDGE_PCI << 8) | 0x00), ~0),
- }, { /* end: all zeroes */ }
+ },
+ { }
};
static const struct pci_error_handlers pcie_portdrv_err_handler = {
@@ -777,7 +775,7 @@ static const struct pci_error_handlers pcie_portdrv_err_handler = {
static struct pci_driver pcie_portdriver = {
.name = "pcieport",
- .id_table = &port_pci_ids[0],
+ .id_table = port_pci_ids,
.probe = pcie_portdrv_probe,
.remove = pcie_portdrv_remove,
@@ -809,7 +807,7 @@ static const struct dmi_system_id pcie_portdrv_dmi_table[] __initconst = {
DMI_MATCH(DMI_PRODUCT_NAME, "U-100"),
},
},
- {}
+ { }
};
static int __init pcie_portdrv_init(void)