diff options
Diffstat (limited to 'drivers/gpu/drm/i915/intel_runtime_pm.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_runtime_pm.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_runtime_pm.c b/drivers/gpu/drm/i915/intel_runtime_pm.c index 1b10b7041513..dd5d1ba4a7f1 100644 --- a/drivers/gpu/drm/i915/intel_runtime_pm.c +++ b/drivers/gpu/drm/i915/intel_runtime_pm.c | |||
@@ -1098,7 +1098,15 @@ lookup_power_well(struct drm_i915_private *dev_priv, | |||
1098 | return power_well; | 1098 | return power_well; |
1099 | } | 1099 | } |
1100 | 1100 | ||
1101 | return NULL; | 1101 | /* |
1102 | * It's not feasible to add error checking code to the callers since | ||
1103 | * this condition really shouldn't happen and it doesn't even make sense | ||
1104 | * to abort things like display initialization sequences. Just return | ||
1105 | * the first power well and hope the WARN gets reported so we can fix | ||
1106 | * our driver. | ||
1107 | */ | ||
1108 | WARN(1, "Power well %d not defined for this platform\n", power_well_id); | ||
1109 | return &power_domains->power_wells[0]; | ||
1102 | } | 1110 | } |
1103 | 1111 | ||
1104 | #define BITS_SET(val, bits) (((val) & (bits)) == (bits)) | 1112 | #define BITS_SET(val, bits) (((val) & (bits)) == (bits)) |