summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/4xx
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2018-03-26 16:43:09 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2018-03-30 15:10:34 +0200
commit9a2c1d31e6910b9d5e0205f9167d0b1abeea1413 (patch)
treefb98883a5645a24f63c14d57cfb133ebba2b3096 /arch/powerpc/platforms/4xx
parentpowerpc/mm: Fix thread_pkey_regs_init() (diff)
downloadlinux-9a2c1d31e6910b9d5e0205f9167d0b1abeea1413.tar.xz
linux-9a2c1d31e6910b9d5e0205f9167d0b1abeea1413.zip
powerpc/4xx: Fix error return code in ppc4xx_msi_probe()
Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> [mpe: Add missing ';' to make it compile] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/platforms/4xx')
-rw-r--r--arch/powerpc/platforms/4xx/msi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/4xx/msi.c b/arch/powerpc/platforms/4xx/msi.c
index 4b859c840ea9..96aaae678928 100644
--- a/arch/powerpc/platforms/4xx/msi.c
+++ b/arch/powerpc/platforms/4xx/msi.c
@@ -241,7 +241,8 @@ static int ppc4xx_msi_probe(struct platform_device *dev)
if (!msi_irqs)
return -ENODEV;
- if (ppc4xx_setup_pcieh_hw(dev, res, msi))
+ err = ppc4xx_setup_pcieh_hw(dev, res, msi);
+ if (err)
goto error_out;
err = ppc4xx_msi_init_allocator(dev, msi);