Message ID | 1398496909-27785-6-git-send-email-kaixu.xia@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCKIXRWP7UMRBMV55WNAKGQEXIBQERI@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f199.google.com (mail-vc0-f199.google.com [209.85.220.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 278F820534 for <linaro@patches.linaro.org>; Sat, 26 Apr 2014 07:22:27 +0000 (UTC) Received: by mail-vc0-f199.google.com with SMTP id lh14sf17272324vcb.6 for <linaro@patches.linaro.org>; Sat, 26 Apr 2014 00:22:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=D4ymdLJ8N0focOIF3EmOZtIsSqZ9BCHlYg2UJatFi5Q=; b=hGYMi2PenVuaWpV/uTAFfWJqte2ybAZNfMxcI826yuFXtdwBhb/2olN+s0+xwXDei8 w8hY25g3bwSZzgCDx2g1EbGY44n+VFj0Xqg9Bo2TCKv8YSnOx5+5zb1YnkjeLZFnFOqK mQjEVAmSm4B0MZ+Nbhah6v3Idr/PdyKKc9yuV9qJeLj6EpnokBMrCCdFuSbUpS59vb8/ ySQABzFpqrnpFGtCIVbW2yEvVEe+yQpt8e1pBkqbOp3ZW5BZ2zHEXjyFH+ik3Xhgi1oK jtXrPtacB4qlMjVEU+gl41NK6akZoE8PovZz7fcbZeuT10JPCgfpLu0QvY/gzbni7Mxa 5Lhg== X-Gm-Message-State: ALoCoQk0EwJx+xAPb+G1EqDyiqDKjACdeXNgD5JszY4sj3i3uNBeYj+hAMJPie3D1hwJobPRlF7C X-Received: by 10.236.109.169 with SMTP id s29mr5102393yhg.43.1398496946870; Sat, 26 Apr 2014 00:22:26 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.32.67 with SMTP id g61ls1942271qgg.12.gmail; Sat, 26 Apr 2014 00:22:26 -0700 (PDT) X-Received: by 10.52.164.237 with SMTP id yt13mr9356147vdb.18.1398496946752; Sat, 26 Apr 2014 00:22:26 -0700 (PDT) Received: from mail-ve0-f175.google.com (mail-ve0-f175.google.com [209.85.128.175]) by mx.google.com with ESMTPS id sw4si2290471vdc.12.2014.04.26.00.22.26 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 26 Apr 2014 00:22:26 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.128.175; Received: by mail-ve0-f175.google.com with SMTP id oz11so5765507veb.34 for <patchwork-forward@linaro.org>; Sat, 26 Apr 2014 00:22:26 -0700 (PDT) X-Received: by 10.220.59.65 with SMTP id k1mr10877337vch.22.1398496946616; Sat, 26 Apr 2014 00:22:26 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp152742vcb; Sat, 26 Apr 2014 00:22:26 -0700 (PDT) X-Received: by 10.66.121.131 with SMTP id lk3mr12864252pab.61.1398496945943; Sat, 26 Apr 2014 00:22:25 -0700 (PDT) Received: from mail-pa0-f48.google.com (mail-pa0-f48.google.com [209.85.220.48]) by mx.google.com with ESMTPS id td10si6360302pac.58.2014.04.26.00.22.25 for <patches@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 26 Apr 2014 00:22:25 -0700 (PDT) Received-SPF: none (google.com: kaixu.xia@linaro.org does not designate permitted sender hosts) client-ip=209.85.220.48; Received: by mail-pa0-f48.google.com with SMTP id hz1so3959815pad.35 for <patches@linaro.org>; Sat, 26 Apr 2014 00:22:25 -0700 (PDT) X-Received: by 10.66.254.198 with SMTP id ak6mr12818198pad.156.1398496945386; Sat, 26 Apr 2014 00:22:25 -0700 (PDT) Received: from localhost.localdomain ([218.17.215.175]) by mx.google.com with ESMTPSA id bc4sm20640376pbb.2.2014.04.26.00.22.22 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 26 Apr 2014 00:22:24 -0700 (PDT) From: Xia Kaixu <kaixu.xia@linaro.org> To: linaro-kernel@lists.linaro.org, arnd@arndb.de Cc: kaixu.xia@linaro.org, patches@linaro.org Subject: [PATCH 05/15] ASoC: samsung-idma: avoid 64-bit division Date: Sat, 26 Apr 2014 15:21:39 +0800 Message-Id: <1398496909-27785-6-git-send-email-kaixu.xia@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1398496909-27785-1-git-send-email-kaixu.xia@linaro.org> References: <1398496909-27785-1-git-send-email-kaixu.xia@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: kaixu.xia@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: <patchwork-forward.linaro.org> X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> |
diff --git a/sound/soc/samsung/idma.c b/sound/soc/samsung/idma.c index 3d5cf15..e9891b4 100644 --- a/sound/soc/samsung/idma.c +++ b/sound/soc/samsung/idma.c @@ -274,7 +274,7 @@ static irqreturn_t iis_irq(int irqno, void *dev_id) addr = readl(idma.regs + I2SLVL0ADDR) - idma.lp_tx_addr; addr += prtd->periodsz; - addr %= (prtd->end - prtd->start); + addr %= (u32)(prtd->end - prtd->start); addr += idma.lp_tx_addr; writel(addr, idma.regs + I2SLVL0ADDR);