]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Fix oops on platforms w/o hpd support
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 14 Oct 2021 09:09:41 +0000 (12:09 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 14 Oct 2021 20:23:55 +0000 (23:23 +0300)
commit20efd30248249c6931df83cbd196833f77f85101
tree7bdfc05e6235700307a845cc2d15e5895f15b129
parent91a75c7fdbc0a18030198faab1dd12168a609651
drm/i915: Fix oops on platforms w/o hpd support

We don't have hpd support on i8xx/i915 which means hotplug_funcs==NULL.
Let's not oops when loading the driver on one those machines.

v2: Drop the redundant function pointer check (Jani)

Cc: Dave Airlie <airlied@redhat.com>
Cc: Jani Nikula <jani.nikula@intel.com>
Fixes: 20a7f50d0964 ("drm/i915: constify hotplug function vtable.")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211014090941.12159-5-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_hotplug.c