diff mbox

drm/i915: I915_WRITE16 should call writew

Message ID 1288603094-22688-1-git-send-email-yuanhan.liu@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Yuanhan Liu Nov. 1, 2010, 9:18 a.m. UTC
None
diff mbox

Patch

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))