This patch fixes sparse warning "cast removes address space of expression" in drivers/dsp/bridge/wmd/tiomap_io.c Signed-off-by: Deepak Chitriki <deepak.chitriki@xxxxxx> --- drivers/dsp/bridge/wmd/tiomap_io.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) 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 +} -- 1.6.3.3 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html