aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pcieport_if.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2009-01-13 08:38:34 -0500
committerJesse Barnes <jbarnes@hobbes.lan>2009-03-19 22:29:20 -0400
commit1bf83e558cb29d163f4bc6decbc3800ecf4db195 (patch)
treeccbf5bc39973a438f69fbd39317ef49a974c76ad /include/linux/pcieport_if.h
parente496b617b40f2abf6d49803f56aa1344ce1b9177 (diff)
PCI: PCIe portdrv: Use driver data to simplify code
PCI Express port driver extension, as defined by struct pcie_port_device_ext in portdrv.h, is allocated and initialized, but never used (it also is never freed). Extend it to hold the PCI Express port type as well as the port interrupt mode, change its name and use it to simplify the code in portdrv_core.c . Additionally, remove the redundant interrupt_mode member of struct pcie_device defined in include/linux/pcieport_if.h . Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'include/linux/pcieport_if.h')
-rw-r--r--include/linux/pcieport_if.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/pcieport_if.h b/include/linux/pcieport_if.h
index 6cd91e3f9820..194409af1037 100644
--- a/include/linux/pcieport_if.h
+++ b/include/linux/pcieport_if.h
@@ -36,7 +36,6 @@ struct pcie_port_service_id {
36 36
37struct pcie_device { 37struct pcie_device {
38 int irq; /* Service IRQ/MSI/MSI-X Vector */ 38 int irq; /* Service IRQ/MSI/MSI-X Vector */
39 int interrupt_mode; /* [0:INTx | 1:MSI | 2:MSI-X] */
40 struct pcie_port_service_id id; /* Service ID */ 39 struct pcie_port_service_id id; /* Service ID */
41 struct pci_dev *port; /* Root/Upstream/Downstream Port */ 40 struct pci_dev *port; /* Root/Upstream/Downstream Port */
42 void *priv_data; /* Service Private Data */ 41 void *priv_data; /* Service Private Data */