From: Srinivas Kandagatla Date: Sun, 16 Sep 2018 23:45:45 +0000 (-0700) Subject: slimbus: ngd: return proper error code instead of zero X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9652e6aa62a1836494ebb8dbd402587c083b568c;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Greg Kroah-Hartman --- 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)