From patchwork Tue Mar 11 22:40:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 26065 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f199.google.com (mail-ig0-f199.google.com [209.85.213.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0E12620068 for ; Tue, 11 Mar 2014 22:44:41 +0000 (UTC) Received: by mail-ig0-f199.google.com with SMTP id uy17sf22241834igb.2 for ; Tue, 11 Mar 2014 15:44:41 -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:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=J1i2LMxZwF0K2qUxojsJIIPSsYVs+g4hkrrUTuVcRVs=; b=RbUqA5MmR4I7F/sOV7oC1EJygEKP4our7muJKWRxckPMcOyKtAsil4EhGPB7dMgXau K0wsH6gVBH2dsdj+esxZUQ5ddW1aqdWo1OqfWa/67EVyDAXE5+Nrmg9KMjD7KlMLFefj 5Lo8FOMcAoltv7VipPkOQ9VbSYTPs51X4ebjRg+t7XR0HlyJeF6NH082OM2BZQrkR+ne mPYUSLKl40VzMTWbRMeqzT/WcrWXICm/cTl1BxbJo1pcJRw2rboDC8FbVO+GcDJmiaxZ ccdnEFLbd2Rz1Zwbq4hL7IoqHkaqZG89Xy0i/QSEnzdFJRlePDM8MnWf6kj0zSyA8zZb 17eg== X-Gm-Message-State: ALoCoQlNxaUeBF8Xm09wXaibwPp0eWQkBKUWmL9oUO3Ym78nFttL5CHPlHgAlFGJCO8he0V7l+Hf X-Received: by 10.182.19.231 with SMTP id i7mr16961315obe.25.1394577881497; Tue, 11 Mar 2014 15:44:41 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.41.230 with SMTP id z93ls2886121qgz.93.gmail; Tue, 11 Mar 2014 15:44:41 -0700 (PDT) X-Received: by 10.52.37.161 with SMTP id z1mr2872877vdj.29.1394577881371; Tue, 11 Mar 2014 15:44:41 -0700 (PDT) Received: from mail-ve0-f177.google.com (mail-ve0-f177.google.com [209.85.128.177]) by mx.google.com with ESMTPS id tr5si6911466vdc.39.2014.03.11.15.44.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 11 Mar 2014 15:44:41 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.177; Received: by mail-ve0-f177.google.com with SMTP id sa20so9180009veb.22 for ; Tue, 11 Mar 2014 15:44:41 -0700 (PDT) X-Received: by 10.221.37.1 with SMTP id tc1mr2726vcb.32.1394577881283; Tue, 11 Mar 2014 15:44:41 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp238971vck; Tue, 11 Mar 2014 15:44:40 -0700 (PDT) X-Received: by 10.68.43.2 with SMTP id s2mr786937pbl.60.1394577880145; Tue, 11 Mar 2014 15:44:40 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id yo5si359466pab.34.2014.03.11.15.44.38; Tue, 11 Mar 2014 15:44:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756177AbaCKWoa (ORCPT + 26 others); Tue, 11 Mar 2014 18:44:30 -0400 Received: from mail-wi0-f170.google.com ([209.85.212.170]:41349 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756017AbaCKWlC (ORCPT ); Tue, 11 Mar 2014 18:41:02 -0400 Received: by mail-wi0-f170.google.com with SMTP id n15so1462722wiw.5 for ; Tue, 11 Mar 2014 15:41:01 -0700 (PDT) X-Received: by 10.180.87.9 with SMTP id t9mr4941748wiz.36.1394577661301; Tue, 11 Mar 2014 15:41:01 -0700 (PDT) Received: from localhost.localdomain (AToulouse-654-1-526-136.w109-220.abo.wanadoo.fr. [109.220.245.136]) by mx.google.com with ESMTPSA id n3sm10411631wix.10.2014.03.11.15.40.59 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 11 Mar 2014 15:41:00 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de, mingo@kernel.org Cc: linux-kernel@vger.kernel.org, dan.carpenter@oracle.com, ezequiel.garcia@free-electrons.com, ivan.khoronzhuk@ti.com, linus.walleij@linaro.org, magnus.damm@gmail.com, matthias.bgg@gmail.com, soren.brinkmann@xilinx.com, sboyd@codeaurora.org Subject: [PATCH 07/17] clocksource: timer-keystone: Delete unnecessary variable Date: Tue, 11 Mar 2014 23:40:43 +0100 Message-Id: <1394577653-8615-7-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1394577653-8615-1-git-send-email-daniel.lezcano@linaro.org> References: <531F8FAC.2040902@linaro.org> <1394577653-8615-1-git-send-email-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: daniel.lezcano@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Matthias Brugger Commit 438e0bff5257 added the timer-keystone device driver but make use of an unnecessary variable in the init function. This patch deletes this variable. Signed-off-by: Matthias Brugger Signed-off-by: Daniel Lezcano --- drivers/clocksource/timer-keystone.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/clocksource/timer-keystone.c b/drivers/clocksource/timer-keystone.c index 86b08cd..0250354 100644 --- a/drivers/clocksource/timer-keystone.c +++ b/drivers/clocksource/timer-keystone.c @@ -164,7 +164,6 @@ static void __init keystone_timer_init(struct device_node *np) unsigned long rate; struct clk *clk; int irq, error; - u32 tgcr; irq = irq_of_parse_and_map(np, 0); if (irq == NO_IRQ) { @@ -199,12 +198,10 @@ static void __init keystone_timer_init(struct device_node *np) keystone_timer_barrier(); /* reset timer as 64-bit, no pre-scaler, plus features are disabled */ - tgcr = 0; keystone_timer_writel(0, TGCR); /* unreset timer */ - tgcr |= TGCR_TIM_UNRESET_MASK; - keystone_timer_writel(tgcr, TGCR); + keystone_timer_writel(TGCR_TIM_UNRESET_MASK, TGCR); /* init counter to zero */ keystone_timer_writel(0, TIM12);