diff options
-rw-r--r-- | drivers/gpu/drm/i915/intel_runtime_pm.c | 9 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/intel_uncore.c | 3 |
2 files changed, 1 insertions, 11 deletions
diff --git a/drivers/gpu/drm/i915/intel_runtime_pm.c b/drivers/gpu/drm/i915/intel_runtime_pm.c index bf2492fe5b41..cc0492e02d97 100644 --- a/drivers/gpu/drm/i915/intel_runtime_pm.c +++ b/drivers/gpu/drm/i915/intel_runtime_pm.c | |||
@@ -2241,9 +2241,6 @@ void intel_runtime_pm_get(struct drm_i915_private *dev_priv) | |||
2241 | struct drm_device *dev = dev_priv->dev; | 2241 | struct drm_device *dev = dev_priv->dev; |
2242 | struct device *device = &dev->pdev->dev; | 2242 | struct device *device = &dev->pdev->dev; |
2243 | 2243 | ||
2244 | if (!HAS_RUNTIME_PM(dev)) | ||
2245 | return; | ||
2246 | |||
2247 | pm_runtime_get_sync(device); | 2244 | pm_runtime_get_sync(device); |
2248 | WARN(dev_priv->pm.suspended, "Device still suspended.\n"); | 2245 | WARN(dev_priv->pm.suspended, "Device still suspended.\n"); |
2249 | } | 2246 | } |
@@ -2270,9 +2267,6 @@ void intel_runtime_pm_get_noresume(struct drm_i915_private *dev_priv) | |||
2270 | struct drm_device *dev = dev_priv->dev; | 2267 | struct drm_device *dev = dev_priv->dev; |
2271 | struct device *device = &dev->pdev->dev; | 2268 | struct device *device = &dev->pdev->dev; |
2272 | 2269 | ||
2273 | if (!HAS_RUNTIME_PM(dev)) | ||
2274 | return; | ||
2275 | |||
2276 | WARN(dev_priv->pm.suspended, "Getting nosync-ref while suspended.\n"); | 2270 | WARN(dev_priv->pm.suspended, "Getting nosync-ref while suspended.\n"); |
2277 | pm_runtime_get_noresume(device); | 2271 | pm_runtime_get_noresume(device); |
2278 | } | 2272 | } |
@@ -2290,9 +2284,6 @@ void intel_runtime_pm_put(struct drm_i915_private *dev_priv) | |||
2290 | struct drm_device *dev = dev_priv->dev; | 2284 | struct drm_device *dev = dev_priv->dev; |
2291 | struct device *device = &dev->pdev->dev; | 2285 | struct device *device = &dev->pdev->dev; |
2292 | 2286 | ||
2293 | if (!HAS_RUNTIME_PM(dev)) | ||
2294 | return; | ||
2295 | |||
2296 | pm_runtime_mark_last_busy(device); | 2287 | pm_runtime_mark_last_busy(device); |
2297 | pm_runtime_put_autosuspend(device); | 2288 | pm_runtime_put_autosuspend(device); |
2298 | } | 2289 | } |
diff --git a/drivers/gpu/drm/i915/intel_uncore.c b/drivers/gpu/drm/i915/intel_uncore.c index fcf04fe69296..022677685561 100644 --- a/drivers/gpu/drm/i915/intel_uncore.c +++ b/drivers/gpu/drm/i915/intel_uncore.c | |||
@@ -53,8 +53,7 @@ intel_uncore_forcewake_domain_to_str(const enum forcewake_domain_id id) | |||
53 | static void | 53 | static void |
54 | assert_device_not_suspended(struct drm_i915_private *dev_priv) | 54 | assert_device_not_suspended(struct drm_i915_private *dev_priv) |
55 | { | 55 | { |
56 | WARN_ONCE(HAS_RUNTIME_PM(dev_priv->dev) && dev_priv->pm.suspended, | 56 | WARN_ONCE(dev_priv->pm.suspended, "Device suspended\n"); |
57 | "Device suspended\n"); | ||
58 | } | 57 | } |
59 | 58 | ||
60 | static inline void | 59 | static inline void |