mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-20 09:59:27 -05:00
Merge branch 'pci/controller/apple'
- Initialize pcie->nvecs (number of available MSIs) before use (Sven Peter) * pci/controller/apple: PCI: apple: Initialize pcie->nvecs before use
This commit is contained in:
@@ -783,6 +783,10 @@ static int apple_pcie_init(struct pci_config_window *cfg)
|
||||
cfg->priv = pcie;
|
||||
INIT_LIST_HEAD(&pcie->ports);
|
||||
|
||||
ret = apple_msi_init(pcie);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
for_each_child_of_node(dev->of_node, of_port) {
|
||||
ret = apple_pcie_setup_port(pcie, of_port);
|
||||
if (ret) {
|
||||
@@ -792,7 +796,7 @@ static int apple_pcie_init(struct pci_config_window *cfg)
|
||||
}
|
||||
}
|
||||
|
||||
return apple_msi_init(pcie);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int apple_pcie_probe(struct platform_device *pdev)
|
||||
|
||||
Reference in New Issue
Block a user