slimbus: ngd: return proper error code instead of zero
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Sun, 16 Sep 2018 23:45:45 +0000 (16:45 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Sep 2018 18:21:02 +0000 (20:21 +0200)
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>
drivers/slimbus/qcom-ngd-ctrl.c

index f872166f8614744781b3625ca82121ddda3dfb0e..ef5eb9e750c22ccc6120f5a44ff2e7b0270c9f6e 100644 (file)
@@ -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)