From patchwork Fri Mar 26 23:30:43 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deepak Chitriki X-Patchwork-Id: 88626 X-Patchwork-Delegate: omar.ramirez@ti.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o2QNUunP001915 for ; Fri, 26 Mar 2010 23:30:56 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752935Ab0CZXaw (ORCPT ); Fri, 26 Mar 2010 19:30:52 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:36273 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752845Ab0CZXaw (ORCPT ); Fri, 26 Mar 2010 19:30:52 -0400 Received: from dlep33.itg.ti.com ([157.170.170.112]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id o2QNUpnS017736 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 26 Mar 2010 18:30:51 -0500 Received: from legion.dal.design.ti.com (localhost [127.0.0.1]) by dlep33.itg.ti.com (8.13.7/8.13.7) with ESMTP id o2QNUp3c010820; Fri, 26 Mar 2010 18:30:51 -0500 (CDT) Received: from soldel-laptop (soldel-laptop-128247079079.am.dhcp.ti.com [128.247.79.79]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id o2QNUoZ05050; Fri, 26 Mar 2010 18:30:51 -0500 (CDT) Received: by soldel-laptop (Postfix, from userid 1000) id E3284606059; Fri, 26 Mar 2010 18:30:49 -0500 (CDT) From: Deepak Chitriki To: linux-omap Cc: Deepak Chitriki Subject: [PATCH] DSPBRIDGE:Fix sparse warnings Date: Fri, 26 Mar 2010 18:30:43 -0500 Message-Id: <1269646243-9236-1-git-send-email-deepak.chitriki@ti.com> X-Mailer: git-send-email 1.6.3.3 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Fri, 26 Mar 2010 23:30:56 +0000 (UTC) diff --git a/drivers/dsp/bridge/wmd/tiomap_io.c b/drivers/dsp/bridge/wmd/tiomap_io.c index b5504a9..cc20f65 100644 --- a/drivers/dsp/bridge/wmd/tiomap_io.c +++ b/drivers/dsp/bridge/wmd/tiomap_io.c @@ -431,22 +431,22 @@ dsp_status sm_interrupt_dsp(struct wmd_dev_context *dev_context, u16 mb_val) * 2:0 AUTO_IVA2_DPLL - Enabling IVA2 DPLL auto control * in CM_AUTOIDLE_PLL_IVA2 register */ - *(reg_uword32 *) (resources.dw_cm_base + 0x34) = 0x1; + *(reg_uword32 *) ((u32)(resources.dw_cm_base) + 0x34) = 0x1; /* * 7:4 IVA2_DPLL_FREQSEL - IVA2 internal frq set to * 0.75 MHz - 1.0 MHz * 2:0 EN_IVA2_DPLL - Enable IVA2 DPLL in lock mode */ - temp = *(reg_uword32 *) (resources.dw_cm_base + 0x4); + temp = *(reg_uword32 *) ((u32)(resources.dw_cm_base) + 0x4); temp = (temp & 0xFFFFFF08) | 0x37; - *(reg_uword32 *) (resources.dw_cm_base + 0x4) = temp; + *(reg_uword32 *) ((u32)(resources.dw_cm_base) + 0x4) = temp; /* Restore mailbox settings */ omap_mbox_restore_ctx(dev_context->mbox); /* Access MMU SYS CONFIG register to generate a short wakeup */ - temp = *(reg_uword32 *) (resources.dw_dmmu_base + 0x10); + temp = *(reg_uword32 *) ((u32)(resources.dw_dmmu_base) + 0x10); dev_context->dw_brd_state = BRD_RUNNING; } else if (dev_context->dw_brd_state == BRD_RETENTION) { @@ -462,4 +462,4 @@ dsp_status sm_interrupt_dsp(struct wmd_dev_context *dev_context, u16 mb_val) } return DSP_SOK; -} \ No newline at end of file +}