summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>2018-09-17 01:45:45 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-09-25 20:21:02 +0200
commit9652e6aa62a1836494ebb8dbd402587c083b568c (patch)
treec2487afed9689601f82402a0b56e7b4d86750fc0
parentslimbus: ngd: register ngd driver only once. (diff)
downloadlinux-9652e6aa62a1836494ebb8dbd402587c083b568c.tar.xz
linux-9652e6aa62a1836494ebb8dbd402587c083b568c.zip
slimbus: ngd: return proper error code instead of zero
It looks like there is a typo in probe return. Fix it. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/slimbus/qcom-ngd-ctrl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/slimbus/qcom-ngd-ctrl.c b/drivers/slimbus/qcom-ngd-ctrl.c
index f872166f8614..ef5eb9e750c2 100644
--- a/drivers/slimbus/qcom-ngd-ctrl.c
+++ b/drivers/slimbus/qcom-ngd-ctrl.c
@@ -1389,7 +1389,7 @@ wq_err:
if (ctrl->mwq)
destroy_workqueue(ctrl->mwq);
- return 0;
+ return ret;
}
static int qcom_slim_ngd_ctrl_probe(struct platform_device *pdev)