drm/i915/opregion: Cleanup opregion after errors during driver loading
authorImre Deak <imre.deak@intel.com>
Wed, 8 Mar 2023 16:25:02 +0000 (18:25 +0200)
committerImre Deak <imre.deak@intel.com>
Fri, 10 Mar 2023 16:17:07 +0000 (18:17 +0200)
commit3e226e4a21808e4582020f813b041504f316022f
treec15a1e4e26c42561a7e18b48b5af211ed9589abc
parentc4a1e57b3544bd3d0252cf4e1d73d9a317de0923
drm/i915/opregion: Cleanup opregion after errors during driver loading

Clean up the opregion state if something fails after
intel_opregion_setup() is called.

Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230308162503.3219200-2-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_opregion.c
drivers/gpu/drm/i915/display/intel_opregion.h
drivers/gpu/drm/i915/i915_driver.c