linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] PCI: PCIe portdrv: use DEFINE_PCI_DEVICE_TABLE macro
@ 2013-11-28  3:12 Jingoo Han
  2013-11-28  4:38 ` Jingoo Han
  0 siblings, 1 reply; 2+ messages in thread
From: Jingoo Han @ 2013-11-28  3:12 UTC (permalink / raw)
  To: 'Bjorn Helgaas'; +Cc: linux-pci, 'Jingoo Han'

This macro is used to create a struct pci_device_id array.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/pci/pcie/portdrv_pci.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pci/pcie/portdrv_pci.c b/drivers/pci/pcie/portdrv_pci.c
index 0d8fdc4..5356902 100644
--- a/drivers/pci/pcie/portdrv_pci.c
+++ b/drivers/pci/pcie/portdrv_pci.c
@@ -368,7 +368,7 @@ static void pcie_portdrv_err_resume(struct pci_dev *dev)
 /*
  * LINUX Device Driver Model
  */
-static const struct pci_device_id port_pci_ids[] = { {
+static DEFINE_PCI_DEVICE_TABLE(port_pci_ids) = { {
 	/* handle any PCI-Express port */
 	PCI_DEVICE_CLASS(((PCI_CLASS_BRIDGE_PCI << 8) | 0x00), ~0),
 	}, { /* end: all zeroes */ }
-- 
1.7.10.4



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-11-28  4:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-28  3:12 [PATCH] PCI: PCIe portdrv: use DEFINE_PCI_DEVICE_TABLE macro Jingoo Han
2013-11-28  4:38 ` Jingoo Han

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).