EDAC, fsl_ddr: Fix error return code in fsl_mc_err_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 8 Sep 2016 15:58:04 +0000 (15:58 +0000)
committerBorislav Petkov <bp@suse.de>
Fri, 9 Sep 2016 17:27:22 +0000 (19:27 +0200)
commit43fa9ba632bd90b5cf63793a461e28df6af4387a
tree2ea42284cd130fc08eeacdac65565bf304233596
parent7d136731e9ba695a6cf775c3a804456eeef4527e
EDAC, fsl_ddr: Fix error return code in fsl_mc_err_probe()

Return negative error code from the edac_mc_add_mc() error handling case
instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: York Sun <york.sun@nxp.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/1473350284-26482-1-git-send-email-weiyj.lk@gmail.com
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/fsl_ddr_edac.c