[Intel-gfx] [PATCH] drm/i915: I915_WRITE16 should call writew

Yuanhan Liu yuanhan.liu at intel.com
Mon Nov 1 10:18:14 CET 2010


Fix the wrong call of writel: I915_WRITE16 should call writew
instead of writel.

Signed-off-by: Yuanhan Liu <yuanhan.liu at intel.com>
---
 drivers/gpu/drm/i915/i915_drv.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 2c2c19b..922e75f 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -1203,7 +1203,7 @@ static inline void i915_write(struct drm_i915_private *dev_priv, u32 reg,
 #define I915_READ(reg)          i915_read(dev_priv, (reg))
 #define I915_WRITE(reg, val)    i915_write(dev_priv, (reg), (val))
 #define I915_READ16(reg)	readw(dev_priv->regs + (reg))
-#define I915_WRITE16(reg, val)	writel(val, dev_priv->regs + (reg))
+#define I915_WRITE16(reg, val)	writew(val, dev_priv->regs + (reg))
 #define I915_READ8(reg)		readb(dev_priv->regs + (reg))
 #define I915_WRITE8(reg, val)	writeb(val, dev_priv->regs + (reg))
 #define I915_WRITE64(reg, val)	writeq(val, dev_priv->regs + (reg))
-- 
1.7.2.3




More information about the Intel-gfx mailing list