From: Paulo Zanoni Date: Thu, 12 Sep 2013 16:58:20 +0000 (-0300) Subject: drm/i915: clear opregon->lid_state after we unmap it X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=794a79a6b00db14c535c951b03820ea5199c82a3;p=linux-beck.git drm/i915: clear opregon->lid_state after we unmap it We don't seem to be using the pointer after it's unmapped, so this patch doesn't fix any bug I can reproduce. Signed-off-by: Paulo Zanoni Reviewed-by: Rodrigo Vivi Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/intel_opregion.c b/drivers/gpu/drm/i915/intel_opregion.c index 2ff74912b656..aab84b1dbf49 100644 --- a/drivers/gpu/drm/i915/intel_opregion.c +++ b/drivers/gpu/drm/i915/intel_opregion.c @@ -657,6 +657,7 @@ void intel_opregion_fini(struct drm_device *dev) opregion->swsci = NULL; opregion->asle = NULL; opregion->vbt = NULL; + opregion->lid_state = NULL; } static void swsci_setup(struct drm_device *dev)