summaryrefslogtreecommitdiffstats
path: root/drivers/pci/pcie
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2024-05-17 14:04:58 +0200
committerBjorn Helgaas <bhelgaas@google.com>2024-06-07 21:46:12 +0200
commit7d2ebbc33d9f65a492d8a41fd33036e411366341 (patch)
tree589b2db647d046f062c25a322c800d73317baa14 /drivers/pci/pcie
parentACPI: PCI: Remove unused struct 'acpi_handle_node' (diff)
downloadlinux-7d2ebbc33d9f65a492d8a41fd33036e411366341.tar.xz
linux-7d2ebbc33d9f65a492d8a41fd33036e411366341.zip
PCI: Use array for .id_table consistently
While 'x' and '&x[0]' are equivalent, most of the PCI drivers use the former form for the .id_table. Update some drivers and documentation for consistency. Link: https://lore.kernel.org/r/20240517120458.1260489-1-masahiroy@kernel.org Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/pcie')
-rw-r--r--drivers/pci/pcie/portdrv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pcie/portdrv.c b/drivers/pci/pcie/portdrv.c
index bb65dfe43409..6af5e0425872 100644
--- a/drivers/pci/pcie/portdrv.c
+++ b/drivers/pci/pcie/portdrv.c
@@ -786,7 +786,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,