Upgrade to 4.4.50-rt62
[kvmfornfv.git] / kernel / drivers / i2c / busses / i2c-qup.c
index fdcbdab..33b1156 100644 (file)
@@ -727,7 +727,8 @@ static int qup_i2c_pm_resume_runtime(struct device *device)
 #ifdef CONFIG_PM_SLEEP
 static int qup_i2c_suspend(struct device *device)
 {
-       qup_i2c_pm_suspend_runtime(device);
+       if (!pm_runtime_suspended(device))
+               return qup_i2c_pm_suspend_runtime(device);
        return 0;
 }