EDAC, mv64x60_edac: Fix an error code in probe()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 28 Jan 2015 19:13:51 +0000 (22:13 +0300)
committerBorislav Petkov <bp@suse.de>
Fri, 30 Jan 2015 16:00:43 +0000 (17:00 +0100)
commit30263b4052c6bf337641e24b64eaa87fe57adf8d
tree03bc61f99cc6a7f44ec0b1ff570cc91201a66761
parentf11135d87daebacd12e7bfb3ea66037ac9a167aa
EDAC, mv64x60_edac: Fix an error code in probe()

If edac_mc_add_mc() fails then we should preserve the error code, but
instead the current code returns success.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: http://lkml.kernel.org/r/20150128191351.GC10259@mwanda
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/mv64x60_edac.c