mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
e496b617b4
commit
1bf83e558c
3 changed files with 39 additions and 62 deletions
|
@ -36,7 +36,6 @@ struct pcie_port_service_id {
|
|||
|
||||
struct pcie_device {
|
||||
int irq; /* Service IRQ/MSI/MSI-X Vector */
|
||||
int interrupt_mode; /* [0:INTx | 1:MSI | 2:MSI-X] */
|
||||
struct pcie_port_service_id id; /* Service ID */
|
||||
struct pci_dev *port; /* Root/Upstream/Downstream Port */
|
||||
void *priv_data; /* Service Private Data */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue