mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-13 14:56:46 +07:00
PCI/portdrv: Use conventional Device ID table formatting
The pci_device_id table was technically correct, but unusually formatted, which made adding entries error-prone. Change the format so it's obvious how to add entries. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
This commit is contained in:
parent
bfeffd1552
commit
c89f7f98c9
@ -182,10 +182,10 @@ static void pcie_portdrv_err_resume(struct pci_dev *dev)
|
|||||||
/*
|
/*
|
||||||
* LINUX Device Driver Model
|
* LINUX Device Driver Model
|
||||||
*/
|
*/
|
||||||
static const struct pci_device_id port_pci_ids[] = { {
|
static const struct pci_device_id port_pci_ids[] = {
|
||||||
/* handle any PCI-Express port */
|
/* handle any PCI-Express port */
|
||||||
PCI_DEVICE_CLASS(((PCI_CLASS_BRIDGE_PCI << 8) | 0x00), ~0),
|
{ PCI_DEVICE_CLASS(((PCI_CLASS_BRIDGE_PCI << 8) | 0x00), ~0) },
|
||||||
}, { /* end: all zeroes */ }
|
{ },
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct pci_error_handlers pcie_portdrv_err_handler = {
|
static const struct pci_error_handlers pcie_portdrv_err_handler = {
|
||||||
|
Loading…
Reference in New Issue
Block a user