From patchwork Mon Nov 1 09:18:14 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuanhan Liu X-Patchwork-Id: 294232 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oA19IiYp012919 for ; Mon, 1 Nov 2010 09:19:05 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 88AA4A086F for ; Mon, 1 Nov 2010 02:18:44 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga14.intel.com (mga14.intel.com [143.182.124.37]) by gabe.freedesktop.org (Postfix) with ESMTP id 964849E7E7 for ; Mon, 1 Nov 2010 02:18:37 -0700 (PDT) Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga102.ch.intel.com with ESMTP; 01 Nov 2010 02:18:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.58,272,1286175600"; d="scan'208";a="342944616" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.239.36.55]) by azsmga001.ch.intel.com with ESMTP; 01 Nov 2010 02:18:36 -0700 From: Yuanhan Liu To: intel-gfx@lists.freedesktop.org Date: Mon, 1 Nov 2010 17:18:14 +0800 Message-Id: <1288603094-22688-1-git-send-email-yuanhan.liu@intel.com> X-Mailer: git-send-email 1.7.2.3 Subject: [Intel-gfx] [PATCH] drm/i915: I915_WRITE16 should call writew X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Mon, 01 Nov 2010 09:19:05 +0000 (UTC) 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))