From patchwork Thu Jun 16 05:08:28 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 884272 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p5G57JAX020258 for ; Thu, 16 Jun 2011 05:08:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751280Ab1FPFIb (ORCPT ); Thu, 16 Jun 2011 01:08:31 -0400 Received: from relmlor4.renesas.com ([210.160.252.174]:36065 "EHLO relmlor4.renesas.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750992Ab1FPFIb (ORCPT ); Thu, 16 Jun 2011 01:08:31 -0400 Received: from relmlir2.idc.renesas.com ([10.200.68.152]) by relmlor4.idc.renesas.com ( SJSMS) with ESMTP id <0LMV00CC0AA6NW50@relmlor4.idc.renesas.com> for linux-sh@vger.kernel.org; Thu, 16 Jun 2011 14:08:30 +0900 (JST) Received: from relmlac3.idc.renesas.com ([10.200.69.23]) by relmlir2.idc.renesas.com ( SJSMS) with ESMTP id <0LMV00KVMAA6GP00@relmlir2.idc.renesas.com> for linux-sh@vger.kernel.org; Thu, 16 Jun 2011 14:08:30 +0900 (JST) Received: by relmlac3.idc.renesas.com (Postfix, from userid 0) id 45E661807C; Thu, 16 Jun 2011 14:08:30 +0900 (JST) Received: from relmlac3.idc.renesas.com (localhost [127.0.0.1]) by relmlac3.idc.renesas.com (Postfix) with ESMTP id 3C27118071; Thu, 16 Jun 2011 14:08:30 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac3.idc.renesas.com with ESMTP id QAJ04857; Thu, 16 Jun 2011 14:08:30 +0900 Date: Thu, 16 Jun 2011 14:08:28 +0900 X-IronPort-AV: E=Sophos; i="4.65,373,1304262000"; d="scan'208"; a="32273283" Received: from unknown (HELO PG10870.renesas.com) ([172.30.8.159]) by relmlii1.idc.renesas.com with ESMTP; Thu, 16 Jun 2011 14:08:28 +0900 Message-id: To: Paul Mundt Cc: Guennadi , Magnus , Linux-SH , Kuninori Morimoto In-reply-to: References: From: Kuninori Morimoto Subject: [PATCH 3/3 v2] dmaengine: shdma: fixup parameter definition on dmae_set_dmars User-Agent: SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?ISO-2022-JP-2?B?U2Fuag==?= =?ISO-2022-JP-2?B?GyQoRCtXGyhC?=) APEL/10.6 Emacs/23.2 (i386-mingw-nt5.1.2600) MULE/6.0 (HANACHIRUSATO) MIME-version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-type: text/plain; charset=US-ASCII Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 16 Jun 2011 05:08:31 +0000 (UTC) chan_pdata->dmars_bit is unsigned int Signed-off-by: Kuninori Morimoto --- drivers/dma/shdma.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/dma/shdma.c b/drivers/dma/shdma.c index 3d22eb8..41a21b3 100644 --- a/drivers/dma/shdma.c +++ b/drivers/dma/shdma.c @@ -211,7 +211,7 @@ static int dmae_set_dmars(struct sh_dmae_chan *sh_chan, u16 val) struct sh_dmae_pdata *pdata = shdev->pdata; const struct sh_dmae_channel *chan_pdata = &pdata->channel[sh_chan->id]; u16 __iomem *addr = shdev->dmars; - int shift = chan_pdata->dmars_bit; + unsigned int shift = chan_pdata->dmars_bit; if (dmae_is_busy(sh_chan)) return -EBUSY;