Message ID | 49843629.8070309@gmail.com |
---|---|
State | Superseded, archived |
Headers | show
Return-Path: <grbounce-34fr-AUAAABuoFD808Q5bCfSIuTXKCcH=incoming=patchwork.ozlabs.org@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from mail-gx0-f56.google.com (mail-gx0-f56.google.com [209.85.217.56]) by ozlabs.org (Postfix) with ESMTP id B8568DE0E7 for <incoming@patchwork.ozlabs.org>; Sat, 31 Jan 2009 22:29:52 +1100 (EST) Received: by gxk16 with SMTP id 16so1560194gxk.1 for <incoming@patchwork.ozlabs.org>; Sat, 31 Jan 2009 03:29:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:received:x-sender:x-apparently-to :received:received:received-spf:authentication-results:received :dkim-signature:domainkey-signature:received:received:message-id :date:from:user-agent:mime-version:content-type:to:cc:subject :reply-to:sender:precedence:x-google-loop:mailing-list:list-id :list-post:list-help:list-unsubscribe:x-beenthere-env:x-beenthere; bh=L5uWMAh2edK8cgGsfB3Shq4Ek1hfro8ifM4Xgprokss=; b=0tD0dFRSt9glRTM2SqUhvebvv/RrdAcmZWdxlayqdDYbEF+E8OL/hLlzHyZ00MIsjh jMLBY2f9iS//9YbhEaEzkGwe+2tpQ5pxOOAFRLpJlHST0tpA49jFPHskBRVX6+QJVbhi 82mhP0INByIuY8xukFaEwCdZrBZt8cb10s4rs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-sender:x-apparently-to:received-spf:authentication-results :dkim-signature:domainkey-signature:message-id:date:from:user-agent :mime-version:content-type:to:cc:subject:reply-to:sender:precedence :x-google-loop:mailing-list:list-id:list-post:list-help :list-unsubscribe:x-beenthere-env:x-beenthere; b=z8nr09+aA32UaFRwtuP/rSj/u87FdgDQLmqp6Ay5hnvtOpaacGnQbhhkwwGqMjpCjw m2aHRwbpWn6vHrocPOR6jtyzm92zDXulu3vMJMxqq+1k2T59c1weP3teujdv5Sab/h9H +fb/sbK+SppzORzVMsYdZ5MitlaUA7uHI8iJQ= Received: by 10.90.33.15 with SMTP id g15mr105261agg.0.1233401388227; Sat, 31 Jan 2009 03:29:48 -0800 (PST) Received: by 10.230.24.165 with SMTP id v37gr1881vbb.0; Sat, 31 Jan 2009 03:29:48 -0800 (PST) X-Sender: roel.kluin@gmail.com X-Apparently-To: rtc-linux@googlegroups.com Received: by 10.103.175.8 with SMTP id c8mr63538mup.9.1233401386695; Sat, 31 Jan 2009 03:29:46 -0800 (PST) Received: from mail-ew0-f21.google.com (mail-ew0-f21.google.com [209.85.219.21]) by mx.google.com with ESMTP id e3si272849fga.11.2009.01.31.03.29.45; Sat, 31 Jan 2009 03:29:45 -0800 (PST) Received-SPF: pass (google.com: domain of roel.kluin@gmail.com designates 209.85.219.21 as permitted sender) client-ip=209.85.219.21; Authentication-Results: mx.google.com; spf=pass (google.com: domain of roel.kluin@gmail.com designates 209.85.219.21 as permitted sender) smtp.mail=roel.kluin@gmail.com; dkim=pass (test mode) header.i=@gmail.com Received: by mail-ew0-f21.google.com with SMTP id 14so1670290ewy.9 for <rtc-linux@googlegroups.com>; Sat, 31 Jan 2009 03:29:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:content-type :content-transfer-encoding; bh=PY9Mbfth0bpoEPNwFM82fCxbW2kOgmAydhn0XlySen0=; b=WpBlB0Yn4YpMNB3vBycYmKPMlefKtfd8tArp8IQL8ABzl4S5t0+S2wi10cmpc7WqTy eC/FpT66x4xX56XVjV1uP2dwxWHbrLxO0P8HgcdJ6hwSUA1sZRtSy+IW4RA+Uo7LTy+x X09bqXJAxJ9elypoM0TgE/H2izVMDc70+V3BE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; b=NE4jQylnUp1lzl0sgTdwUVt1Ob2wnooR+ocwYqRID6Uz6QbvtxAZnLEexVcGcupYJc P+IwERiIh0JJSWDwa8bCXbFBYUF+aBj4klpCROs5R3PYBVyGGiogyQ2v9DQG01L2W1jF HoVWkXyrrDAdn2wahzXzW1Q82wTBLj05p5apY= Received: by 10.210.35.17 with SMTP id i17mr2487588ebi.70.1233401385535; Sat, 31 Jan 2009 03:29:45 -0800 (PST) Received: from ?192.168.1.115? (d133062.upc-d.chello.nl [213.46.133.62]) by mx.google.com with ESMTPS id d23sm5782892nfh.68.2009.01.31.03.29.44 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 31 Jan 2009 03:29:45 -0800 (PST) Message-ID: <49843629.8070309@gmail.com> Date: Sat, 31 Jan 2009 12:29:45 +0100 From: Roel Kluin <roel.kluin@gmail.com> User-Agent: Thunderbird 2.0.0.18 (X11/20081105) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 To: mano@roarinelk.homelinux.net, a.zummo@towertech.it CC: rtc-linux@googlegroups.com Subject: [rtc-linux] [PATCH] rtc: t reaches -1, tested 0 Reply-To: rtc-linux@googlegroups.com Sender: rtc-linux@googlegroups.com Precedence: bulk X-Google-Loop: groups Mailing-List: list rtc-linux@googlegroups.com; contact rtc-linux+owner@googlegroups.com List-Id: <rtc-linux.googlegroups.com> List-Post: <mailto:rtc-linux@googlegroups.com> List-Help: <mailto:rtc-linux+help@googlegroups.com> List-Unsubscribe: <http://googlegroups.com/group/rtc-linux/subscribe>, <mailto:rtc-linux+unsubscribe@googlegroups.com> X-BeenThere-Env: rtc-linux@googlegroups.com X-BeenThere: rtc-linux@googlegroups.com |
diff --git a/drivers/rtc/rtc-au1xxx.c b/drivers/rtc/rtc-au1xxx.c index 8906a68..979ed04 100644 --- a/drivers/rtc/rtc-au1xxx.c +++ b/drivers/rtc/rtc-au1xxx.c @@ -81,7 +81,7 @@ static int __devinit au1xtoy_rtc_probe(struct platform_device *pdev) if (au_readl(SYS_TOYTRIM) != 32767) { /* wait until hardware gives access to TRIM register */ t = 0x00100000; - while ((au_readl(SYS_COUNTER_CNTRL) & SYS_CNTRL_T0S) && t--) + while ((au_readl(SYS_COUNTER_CNTRL) & SYS_CNTRL_T0S) && --t) msleep(1); if (!t) {
With a postfix decrement t will reach -1 rather than 0, so the warning will not be issued. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> --- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. -~----------~----~----~----~------~----~------~--~---