Commit af5163ac authored by Egbert Eich's avatar Egbert Eich Committed by Daniel Vetter

drm/i915: Remove pch_rq_mask from struct drm_i915_private.

This variable is only used locally in the irq postinstall
functions for ivybridge and ironlake.
Signed-off-by: default avatarEgbert Eich <eich@suse.de>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 2c10d571
...@@ -697,7 +697,6 @@ typedef struct drm_i915_private { ...@@ -697,7 +697,6 @@ typedef struct drm_i915_private {
u32 pipestat[2]; u32 pipestat[2];
u32 irq_mask; u32 irq_mask;
u32 gt_irq_mask; u32 gt_irq_mask;
u32 pch_irq_mask;
u32 hotplug_supported_mask; u32 hotplug_supported_mask;
struct work_struct hotplug_work; struct work_struct hotplug_work;
......
...@@ -1892,6 +1892,7 @@ static int ironlake_irq_postinstall(struct drm_device *dev) ...@@ -1892,6 +1892,7 @@ static int ironlake_irq_postinstall(struct drm_device *dev)
DE_AUX_CHANNEL_A; DE_AUX_CHANNEL_A;
u32 render_irqs; u32 render_irqs;
u32 hotplug_mask; u32 hotplug_mask;
u32 pch_irq_mask;
dev_priv->irq_mask = ~display_mask; dev_priv->irq_mask = ~display_mask;
...@@ -1935,10 +1936,10 @@ static int ironlake_irq_postinstall(struct drm_device *dev) ...@@ -1935,10 +1936,10 @@ static int ironlake_irq_postinstall(struct drm_device *dev)
SDE_AUX_MASK); SDE_AUX_MASK);
} }
dev_priv->pch_irq_mask = ~hotplug_mask; pch_irq_mask = ~hotplug_mask;
I915_WRITE(SDEIIR, I915_READ(SDEIIR)); I915_WRITE(SDEIIR, I915_READ(SDEIIR));
I915_WRITE(SDEIMR, dev_priv->pch_irq_mask); I915_WRITE(SDEIMR, pch_irq_mask);
I915_WRITE(SDEIER, hotplug_mask); I915_WRITE(SDEIER, hotplug_mask);
POSTING_READ(SDEIER); POSTING_READ(SDEIER);
...@@ -1966,6 +1967,7 @@ static int ivybridge_irq_postinstall(struct drm_device *dev) ...@@ -1966,6 +1967,7 @@ static int ivybridge_irq_postinstall(struct drm_device *dev)
DE_AUX_CHANNEL_A_IVB; DE_AUX_CHANNEL_A_IVB;
u32 render_irqs; u32 render_irqs;
u32 hotplug_mask; u32 hotplug_mask;
u32 pch_irq_mask;
dev_priv->irq_mask = ~display_mask; dev_priv->irq_mask = ~display_mask;
...@@ -1995,10 +1997,10 @@ static int ivybridge_irq_postinstall(struct drm_device *dev) ...@@ -1995,10 +1997,10 @@ static int ivybridge_irq_postinstall(struct drm_device *dev)
SDE_PORTD_HOTPLUG_CPT | SDE_PORTD_HOTPLUG_CPT |
SDE_GMBUS_CPT | SDE_GMBUS_CPT |
SDE_AUX_MASK_CPT); SDE_AUX_MASK_CPT);
dev_priv->pch_irq_mask = ~hotplug_mask; pch_irq_mask = ~hotplug_mask;
I915_WRITE(SDEIIR, I915_READ(SDEIIR)); I915_WRITE(SDEIIR, I915_READ(SDEIIR));
I915_WRITE(SDEIMR, dev_priv->pch_irq_mask); I915_WRITE(SDEIMR, pch_irq_mask);
I915_WRITE(SDEIER, hotplug_mask); I915_WRITE(SDEIER, hotplug_mask);
POSTING_READ(SDEIER); POSTING_READ(SDEIER);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment