From patchwork Fri Oct 16 16:12:39 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roel Kluin X-Patchwork-Id: 54291 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9GG7xkL010729 for ; Fri, 16 Oct 2009 16:07:59 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753722AbZJPQDk (ORCPT ); Fri, 16 Oct 2009 12:03:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753598AbZJPQDk (ORCPT ); Fri, 16 Oct 2009 12:03:40 -0400 Received: from mail-ew0-f208.google.com ([209.85.219.208]:48836 "EHLO mail-ew0-f208.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752463AbZJPQDj (ORCPT ); Fri, 16 Oct 2009 12:03:39 -0400 Received: by ewy4 with SMTP id 4so1733807ewy.37 for ; Fri, 16 Oct 2009 09:03:01 -0700 (PDT) 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:subject:content-type :content-transfer-encoding; bh=XPo1LQFAE3YWXdCK91DwOlQ5QKRgU660FTtv5VtgQQk=; b=oSxpWnYHLRTX653kC4GaxIE7hsFLlxyFK+W+Kb1qB5tfzh2MVeqYAEr8M2huHtFE69 ox7HCEF0GzLgJHfWs/WxNPXRGhstrA2J7DzxgPAR61TOvrWlfwDw66OgimEUBPj5zHLX F4I13uB78A0ejNOXMFm4WwfMnhaJaGY2FtDEg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=g3/8euKr2eMJ44xXZNjRVImgcoo0MAiYyaFqNiQJGbcf7JJOGoN33aX9KlvutcILJB cUkIeAA3xZHPybbcLSAog55pMH70j4lTk8tKjsfJOdtHzWwuXW4tMKCAY+CkKi31Snes 8JN3Hx3mw8DdTd3cwr9rzEh9AdUQlQwywlNPg= Received: by 10.211.130.19 with SMTP id h19mr1789367ebn.54.1255708981730; Fri, 16 Oct 2009 09:03:01 -0700 (PDT) Received: from zoinx.mars (d133062.upc-d.chello.nl [213.46.133.62]) by mx.google.com with ESMTPS id 5sm13790eyh.9.2009.10.16.09.03.00 (version=SSLv3 cipher=RC4-MD5); Fri, 16 Oct 2009 09:03:01 -0700 (PDT) Message-ID: <4AD89B77.6070303@gmail.com> Date: Fri, 16 Oct 2009 18:12:39 +0200 From: Roel Kluin User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20090922 Fedora/3.0-2.7.b4.fc11 Thunderbird/3.0b4 MIME-Version: 1.0 To: Dmitry Torokhov , Dmitry Torokhov , linux-input@vger.kernel.org, Andrew Morton Subject: [PATCH] hp_sdc_rtc: Fix test in hp_sdc_rtc_read_rt() Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org diff --git a/drivers/input/misc/hp_sdc_rtc.c b/drivers/input/misc/hp_sdc_rtc.c index 216a559..ea821b5 100644 --- a/drivers/input/misc/hp_sdc_rtc.c +++ b/drivers/input/misc/hp_sdc_rtc.c @@ -209,7 +209,7 @@ static inline int hp_sdc_rtc_read_rt(struct timeval *res) { /* Read the i8042 fast handshake timer */ static inline int hp_sdc_rtc_read_fhs(struct timeval *res) { - uint64_t raw; + int64_t raw; unsigned int tenms; raw = hp_sdc_rtc_read_i8042timer(HP_SDC_CMD_LOAD_FHS, 2);