File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -607,7 +607,7 @@ static struct pci_bridge_emul_ops advk_pci_bridge_emul_ops = {
607
607
* Initialize the configuration space of the PCI-to-PCI bridge
608
608
* associated with the given PCIe interface.
609
609
*/
610
- static void advk_sw_pci_bridge_init (struct advk_pcie * pcie )
610
+ static int advk_sw_pci_bridge_init (struct advk_pcie * pcie )
611
611
{
612
612
struct pci_bridge_emul * bridge = & pcie -> bridge ;
613
613
@@ -633,8 +633,7 @@ static void advk_sw_pci_bridge_init(struct advk_pcie *pcie)
633
633
bridge -> data = pcie ;
634
634
bridge -> ops = & advk_pci_bridge_emul_ops ;
635
635
636
- pci_bridge_emul_init (bridge , 0 );
637
-
636
+ return pci_bridge_emul_init (bridge , 0 );
638
637
}
639
638
640
639
static bool advk_pcie_valid_device (struct advk_pcie * pcie , struct pci_bus * bus ,
@@ -1167,7 +1166,11 @@ static int advk_pcie_probe(struct platform_device *pdev)
1167
1166
1168
1167
advk_pcie_setup_hw (pcie );
1169
1168
1170
- advk_sw_pci_bridge_init (pcie );
1169
+ ret = advk_sw_pci_bridge_init (pcie );
1170
+ if (ret ) {
1171
+ dev_err (dev , "Failed to register emulated root PCI bridge\n" );
1172
+ return ret ;
1173
+ }
1171
1174
1172
1175
ret = advk_pcie_init_irq_domain (pcie );
1173
1176
if (ret ) {
You can’t perform that action at this time.
0 commit comments