]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
PCI: PCIe portdrv: Use driver data to simplify code
authorRafael J. Wysocki <rjw@sisk.pl>
Tue, 13 Jan 2009 13:38:34 +0000 (14:38 +0100)
committerJesse Barnes <jbarnes@hobbes.lan>
Fri, 20 Mar 2009 02:29:20 +0000 (19:29 -0700)
commit1bf83e558cb29d163f4bc6decbc3800ecf4db195
treeccbf5bc39973a438f69fbd39317ef49a974c76ad
parente496b617b40f2abf6d49803f56aa1344ce1b9177
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>
drivers/pci/pcie/portdrv.h
drivers/pci/pcie/portdrv_core.c
include/linux/pcieport_if.h