diff options
Diffstat (limited to 'drivers/pci/pcie/portdrv_bus.c')
| -rw-r--r-- | drivers/pci/pcie/portdrv_bus.c | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pci/pcie/portdrv_bus.c b/drivers/pci/pcie/portdrv_bus.c index 18bf90f748f..87e79a6ffb5 100644 --- a/drivers/pci/pcie/portdrv_bus.c +++ b/drivers/pci/pcie/portdrv_bus.c @@ -18,8 +18,8 @@  static int pcie_port_bus_match(struct device *dev, struct device_driver *drv);  struct bus_type pcie_port_bus_type = { -	.name 		= "pci_express", -	.match 		= pcie_port_bus_match, +	.name		= "pci_express", +	.match		= pcie_port_bus_match,  };  EXPORT_SYMBOL_GPL(pcie_port_bus_type); @@ -38,7 +38,7 @@ static int pcie_port_bus_match(struct device *dev, struct device_driver *drv)  		return 0;  	if ((driver->port_type != PCIE_ANY_PORT) && -	    (driver->port_type != pciedev->port->pcie_type)) +	    (driver->port_type != pci_pcie_type(pciedev->port)))  		return 0;  	return 1;  | 
