• Rafael J. Wysocki's avatar
    PCI: PCIe portdrv: Remove struct pcie_port_service_id · 22106368
    Rafael J. Wysocki authored
    The PCI Express port driver uses 'struct pcie_port_service_id' for
    matching port service devices and drivers, but this structure
    contains fields that duplicate information from the port device
    itself (vendor, device, subvendor, subdevice) and fields that are not
    used by any existing port service driver (class, class_mask,
    drvier_data).  Also, both existing port service drivers (AER and
    PCIe HP) don't even use the vendor and device fields for device
    matching.  Therefore 'struct pcie_port_service_id' can be removed
    altogether and the only useful members of it (port_type, service) can
    be introduced directly into the port service device and port service
    driver structures.  That simplifies the code quite a bit and reduces
    its size.
    Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
    Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
    22106368
portdrv_bus.c 1.27 KB