diff options
| author | Rob Herring <[email protected]> | 2020-05-13 17:38:58 -0500 |
|---|---|---|
| committer | Bjorn Helgaas <[email protected]> | 2020-05-14 16:36:19 -0500 |
| commit | 1b54ae8327a4d630111c8d88ba7906483ec6010b (patch) | |
| tree | 758ad9838fd8534e8e3a88ff3d380aec3b89bc4c /drivers/pci/controller/dwc/pci-layerscape.c | |
| parent | 8f3d9f354286745c751374f5f1fcafee6b3f3136 (diff) | |
PCI: Fix pci_register_host_bridge() device_register() error handling
If device_register() has an error, we should bail out of
pci_register_host_bridge() rather than continuing on.
Fixes: 37d6a0a6f470 ("PCI: Add pci_register_host_bridge() interface")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Rob Herring <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Lorenzo Pieralisi <[email protected]>
Reviewed-by: Arnd Bergmann <[email protected]>
Diffstat (limited to 'drivers/pci/controller/dwc/pci-layerscape.c')
0 files changed, 0 insertions, 0 deletions