diff options
Diffstat (limited to 'drivers/gpu/drm/i915/intel_panel.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_panel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_panel.c b/drivers/gpu/drm/i915/intel_panel.c index f30c996e882c..b05c6d9b3be7 100644 --- a/drivers/gpu/drm/i915/intel_panel.c +++ b/drivers/gpu/drm/i915/intel_panel.c | |||
@@ -381,7 +381,7 @@ intel_panel_detect(struct drm_device *dev) | |||
381 | 381 | ||
382 | /* Assume that the BIOS does not lie through the OpRegion... */ | 382 | /* Assume that the BIOS does not lie through the OpRegion... */ |
383 | if (!i915.panel_ignore_lid && dev_priv->opregion.lid_state) { | 383 | if (!i915.panel_ignore_lid && dev_priv->opregion.lid_state) { |
384 | return ioread32(dev_priv->opregion.lid_state) & 0x1 ? | 384 | return *dev_priv->opregion.lid_state & 0x1 ? |
385 | connector_status_connected : | 385 | connector_status_connected : |
386 | connector_status_disconnected; | 386 | connector_status_disconnected; |
387 | } | 387 | } |