diff options
author | Li Chen <lchen@ambarella.com> | 2021-10-21 04:50:19 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2021-11-03 21:37:05 +0100 |
commit | 27cd7e3c9bb1ae13bc16f08138edd6e4df3cd211 (patch) | |
tree | 18a056bda5243f31119425263727f2f776d1726e /drivers | |
parent | PCI: j721e: Fix j721e_pcie_probe() error path (diff) | |
download | linux-27cd7e3c9bb1ae13bc16f08138edd6e4df3cd211.tar.xz linux-27cd7e3c9bb1ae13bc16f08138edd6e4df3cd211.zip |
PCI: cadence: Add cdns_plat_pcie_probe() missing return
When cdns_plat_pcie_probe() succeeds, return success instead of falling
into the error handling code.
Fixes: bd22885aa188 ("PCI: cadence: Refactor driver to use as a core library")
Link: https://lore.kernel.org/r/DM6PR19MB40271B93057D949310F0B0EDA0BF9@DM6PR19MB4027.namprd19.prod.outlook.com
Signed-off-by: Xuliang Zhang <xlzhanga@ambarella.com>
Signed-off-by: Li Chen <lchen@ambarella.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pci/controller/cadence/pcie-cadence-plat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pci/controller/cadence/pcie-cadence-plat.c b/drivers/pci/controller/cadence/pcie-cadence-plat.c index 5fee0f89ab59..a224afadbcc0 100644 --- a/drivers/pci/controller/cadence/pcie-cadence-plat.c +++ b/drivers/pci/controller/cadence/pcie-cadence-plat.c @@ -127,6 +127,8 @@ static int cdns_plat_pcie_probe(struct platform_device *pdev) goto err_init; } + return 0; + err_init: err_get_sync: pm_runtime_put_sync(dev); |