PCI: cadence: Add cdns_plat_pcie_probe() missing return
authorLi Chen <lchen@ambarella.com>
Thu, 21 Oct 2021 02:50:19 +0000 (02:50 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Nov 2021 13:03:49 +0000 (14:03 +0100)
commitc1a8fb237470f1579fe4504389f4b3cf2e4015e8
treeed2f513c255b5deed0c33af8beff5e0d2a9726f3
parentadcfc317d3f5d14d02881211f409c32f6f845fd2
PCI: cadence: Add cdns_plat_pcie_probe() missing return

commit 27cd7e3c9bb1ae13bc16f08138edd6e4df3cd211 upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pci/controller/cadence/pcie-cadence-plat.c