Merge "ngd_slim: Ignore pm_runtime_get error when runtime-pm is not enabled"
diff --git a/drivers/slimbus/slim-msm-ngd.c b/drivers/slimbus/slim-msm-ngd.c
index 2498298..bca0af0 100644
--- a/drivers/slimbus/slim-msm-ngd.c
+++ b/drivers/slimbus/slim-msm-ngd.c
@@ -369,7 +369,7 @@
* Setting runtime status to suspended clears the error
* It also makes HW status cosistent with what SW has it here
*/
- if (ret < 0) {
+ if (pm_runtime_enabled(dev->dev) && ret < 0) {
SLIM_ERR(dev, "slim ctrl vote failed ret:%d, state:%d",
ret, dev->state);
pm_runtime_set_suspended(dev->dev);