staging: fsl-mc/dpio: Fix the error handling in probe()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 27 Apr 2018 14:07:33 +0000 (17:07 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 29 Apr 2018 13:25:08 +0000 (15:25 +0200)
commit503075521d8dc8941c1edc03460c009b8fc71d54
treea6769fd52aa10162deb50ec71116e6d226fd0001
parent3c2b8df02c726f166d7fc4a7260cc4acde489b4a
staging: fsl-mc/dpio: Fix the error handling in probe()

First of all devm_memremap() function returns an error pointer, it
doesn't return NULL.  And second we need to set the error code on these
paths.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-mc/bus/dpio/dpio-driver.c