From patchwork Thu Feb 23 16:14:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Belloni X-Patchwork-Id: 9588485 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8791B60578 for ; Thu, 23 Feb 2017 16:15:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6F70028927 for ; Thu, 23 Feb 2017 16:15:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 642E32892D; Thu, 23 Feb 2017 16:15:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DE5C628927 for ; Thu, 23 Feb 2017 16:15:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=hMpP9DkgBYb1PexS4I0a+ast1J6f+ABJwundtyeEzGk=; b=FO5 7Sna6A1R4EglledohMBNlTDk2DAHii2PdB/h/gH377A17yopboKRkNwZhVAObY5z/vOi3ibnjlU8G APLaHT+zkcLxzF17av1Di+/e4l8jweyBzwvNaxmMj4/JPVnfjAEiOeWFs7u8z1dmHXbzwm4ttCh2k 5QvJar9CCqDSD7yYmgSJPAicDkmp8eI2PwGpL1Qhs78bZqGZy/LvFb0U5CLwTNLWothhsGZWNUDvM zvydUa6xskwnrriQnjR7/b1zThV4aFoD1fN83RbviVCbmtvAnfEEUEP9GHO6dwpXNAh3G0/T2jA1M i0tEYeR6l8HFU46VF57f9BxWx7I2c7A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cgw3N-0002dV-3f; Thu, 23 Feb 2017 16:15:37 +0000 Received: from mail.free-electrons.com ([62.4.15.54]) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cgw2x-0001JU-Tr for linux-arm-kernel@lists.infradead.org; Thu, 23 Feb 2017 16:15:14 +0000 Received: by mail.free-electrons.com (Postfix, from userid 110) id 483EB20BE0; Thu, 23 Feb 2017 17:14:49 +0100 (CET) Received: from localhost (unknown [88.191.26.124]) by mail.free-electrons.com (Postfix) with ESMTPSA id 2813C2078A; Thu, 23 Feb 2017 17:14:49 +0100 (CET) From: Alexandre Belloni To: Simon Kelley , Kalle Valo Subject: [PATCH] wireless/atmel: remove time_t usage Date: Thu, 23 Feb 2017 17:14:45 +0100 Message-Id: <20170223161445.19200-1-alexandre.belloni@free-electrons.com> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170223_081512_123216_F60B811A X-CRM114-Status: UNSURE ( 8.78 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: netdev@vger.kernel.org, Alexandre Belloni , linux-wireless@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP last_qual never really holds a time. It only holds jiffies. Make it the same type as jiffies. Signed-off-by: Alexandre Belloni --- drivers/net/wireless/atmel/atmel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/atmel/atmel.c b/drivers/net/wireless/atmel/atmel.c index e12f62356fd1..27b110dc8cc6 100644 --- a/drivers/net/wireless/atmel/atmel.c +++ b/drivers/net/wireless/atmel/atmel.c @@ -513,7 +513,7 @@ struct atmel_private { } station_state; int operating_mode, power_mode; - time_t last_qual; + unsigned long last_qual; int beacons_this_sec; int channel; int reg_domain, config_reg_domain;