summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/display/intel_opregion.c
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@intel.com>2020-10-26 21:46:17 -0700
committerLucas De Marchi <lucas.demarchi@intel.com>2020-10-28 00:33:46 -0700
commit859d74f65d8734df8f41a923496eca5df7e04f29 (patch)
tree3056c24cda6f46586178f185cbfff0c568e4403e /drivers/gpu/drm/i915/display/intel_opregion.c
parent949ab9d229a23025c7afa4e357f9affadb3fa94c (diff)
downloadlinux-859d74f65d8734df8f41a923496eca5df7e04f29.tar.gz
linux-859d74f65d8734df8f41a923496eca5df7e04f29.tar.bz2
linux-859d74f65d8734df8f41a923496eca5df7e04f29.zip
drm/i915/display: remove debug message from error path
First check in the function is if swsci() is supported. All the error paths are easy to figure out the reason, so remove the extra debug message: it's normal not to support swsci() e.g. in dgfx. v2: Rather than special case dgfx, just remove the debug message (from Ville) Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com> Reviewed-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20201027044618.719064-2-lucas.demarchi@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_opregion.c')
-rw-r--r--drivers/gpu/drm/i915/display/intel_opregion.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_opregion.c b/drivers/gpu/drm/i915/display/intel_opregion.c
index de995362f428..4f77cf849171 100644
--- a/drivers/gpu/drm/i915/display/intel_opregion.c
+++ b/drivers/gpu/drm/i915/display/intel_opregion.c
@@ -1007,12 +1007,8 @@ intel_opregion_get_panel_type(struct drm_i915_private *dev_priv)
int ret;
ret = swsci(dev_priv, SWSCI_GBDA_PANEL_DETAILS, 0x0, &panel_details);
- if (ret) {
- drm_dbg_kms(&dev_priv->drm,
- "Failed to get panel details from OpRegion (%d)\n",
- ret);
+ if (ret)
return ret;
- }
ret = (panel_details >> 8) & 0xff;
if (ret > 0x10) {