From patchwork Wed Apr 3 12:15:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 15858 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id EF8A923E21 for ; Wed, 3 Apr 2013 12:15:40 +0000 (UTC) Received: from mail-qa0-f70.google.com (mail-qa0-f70.google.com [209.85.216.70]) by fiordland.canonical.com (Postfix) with ESMTP id 9A882A18696 for ; Wed, 3 Apr 2013 12:15:40 +0000 (UTC) Received: by mail-qa0-f70.google.com with SMTP id bs12sf2346878qab.1 for ; Wed, 03 Apr 2013 05:15:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=Z1I6cb1WxB49xOORDp3iGLYSDHAJQqhowu4Bo5epNFg=; b=LtTvPcGWkcTYw1e+NhAQo6NkCSpC8bNBd0JOHov448fHPJmuTEMwVh2A6PmsXxGysZ uC4DayUmEGJGWOa/EmdyTZaHJGrV5/gaYe8O5nrVxHgdGvXE/t0vta19k9n/KWvz7zMQ f3ftGW4mI13PZiqvV0v8bkbe49g1fcmYP+0ChxTPQcSOx3ZcXhD6IGqN91v4p/gZjE45 4eCtEykduerA5h4DWeqoLELW/YhE0aTvx249YqqWLZVPZ4StQRX4k7FbDm03kgXmf6AH RkgCZ4WsJpH5cpyV3en1dAGmRBVtcc9hMHE8D1SRWyagpZ6El72W3Lt4bX8W08U6qKiC qD5A== X-Received: by 10.224.207.2 with SMTP id fw2mr1000740qab.6.1364991340193; Wed, 03 Apr 2013 05:15:40 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.39.105 with SMTP id o9ls889865qek.45.gmail; Wed, 03 Apr 2013 05:15:40 -0700 (PDT) X-Received: by 10.52.23.205 with SMTP id o13mr813848vdf.78.1364991340099; Wed, 03 Apr 2013 05:15:40 -0700 (PDT) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id o6si4663070vdw.63.2013.04.03.05.15.40 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Apr 2013 05:15:40 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.176; Received: by mail-vc0-f176.google.com with SMTP id ib11so1381648vcb.7 for ; Wed, 03 Apr 2013 05:15:40 -0700 (PDT) X-Received: by 10.52.31.103 with SMTP id z7mr829209vdh.56.1364991339990; Wed, 03 Apr 2013 05:15:39 -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.59.4.204 with SMTP id cg12csp167608ved; Wed, 3 Apr 2013 05:15:39 -0700 (PDT) X-Received: by 10.194.5.4 with SMTP id o4mr2428004wjo.40.1364991338653; Wed, 03 Apr 2013 05:15:38 -0700 (PDT) Received: from mail-we0-x234.google.com (mail-we0-x234.google.com [2a00:1450:400c:c03::234]) by mx.google.com with ESMTPS id o8si2376485wjb.54.2013.04.03.05.15.38 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Apr 2013 05:15:38 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c03::234 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=2a00:1450:400c:c03::234; Received: by mail-we0-f180.google.com with SMTP id r5so1102724wey.11 for ; Wed, 03 Apr 2013 05:15:38 -0700 (PDT) X-Received: by 10.194.104.168 with SMTP id gf8mr1905243wjb.58.1364991338258; Wed, 03 Apr 2013 05:15:38 -0700 (PDT) Received: from mai.home (AToulouse-654-1-486-7.w92-146.abo.wanadoo.fr. [92.146.77.7]) by mx.google.com with ESMTPS id bq19sm8729530wib.7.2013.04.03.05.15.35 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Apr 2013 05:15:37 -0700 (PDT) From: Daniel Lezcano To: rjw@sisk.pl Cc: linux-pm@vger.kernel.org, patches@linaro.org, linaro-kernel@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux@arm.linux.org.uk, rnayak@ti.com, swarren@wwwdotorg.org, linux-tegra@vger.kernel.org, horms+renesas@verge.net.au, santosh.shilimkar@ti.com, arnd@arndb.de, lenb@kernel.org, nsekhar@ti.com, josephl@nvidia.com, deepthi@linux.vnet.ibm.com Subject: [PATCH 5/9] ARM: tegra: cpuidle: remove useless initialization Date: Wed, 3 Apr 2013 14:15:18 +0200 Message-Id: <1364991322-20585-5-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1364991322-20585-1-git-send-email-daniel.lezcano@linaro.org> References: <1364991322-20585-1-git-send-email-daniel.lezcano@linaro.org> X-Gm-Message-State: ALoCoQn5T3TbiKhH6syIdlGx6QYN+6iY8Huwsc6mS+12/wU2vn0gyWSXX0WZbQMotKX79yz4rUqB X-Original-Sender: daniel.lezcano@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.176 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 Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , dev->state_count is initialized automatically by cpuidle_register_device. When drv->state_count is equal to dev->state_count, no need to init this field, so removing it. Signed-off-by: Daniel Lezcano Reviewed-by: Joseph Lo Acked-by: Joseph Lo --- arch/arm/mach-tegra/cpuidle-tegra114.c | 1 - arch/arm/mach-tegra/cpuidle-tegra20.c | 1 - arch/arm/mach-tegra/cpuidle-tegra30.c | 1 - 3 files changed, 3 deletions(-) diff --git a/arch/arm/mach-tegra/cpuidle-tegra114.c b/arch/arm/mach-tegra/cpuidle-tegra114.c index 0f4e8c4..c527cff 100644 --- a/arch/arm/mach-tegra/cpuidle-tegra114.c +++ b/arch/arm/mach-tegra/cpuidle-tegra114.c @@ -49,7 +49,6 @@ int __init tegra114_cpuidle_init(void) dev = &per_cpu(tegra_idle_device, cpu); dev->cpu = cpu; - dev->state_count = drv->state_count; ret = cpuidle_register_device(dev); if (ret) { pr_err("CPU%u: CPUidle device registration failed\n", diff --git a/arch/arm/mach-tegra/cpuidle-tegra20.c b/arch/arm/mach-tegra/cpuidle-tegra20.c index 1ad1a67..b94d76a 100644 --- a/arch/arm/mach-tegra/cpuidle-tegra20.c +++ b/arch/arm/mach-tegra/cpuidle-tegra20.c @@ -243,7 +243,6 @@ int __init tegra20_cpuidle_init(void) dev->coupled_cpus = *cpu_possible_mask; #endif - dev->state_count = drv->state_count; ret = cpuidle_register_device(dev); if (ret) { pr_err("CPU%u: CPUidle device registration failed\n", diff --git a/arch/arm/mach-tegra/cpuidle-tegra30.c b/arch/arm/mach-tegra/cpuidle-tegra30.c index 8b50cf4..c4e01fe 100644 --- a/arch/arm/mach-tegra/cpuidle-tegra30.c +++ b/arch/arm/mach-tegra/cpuidle-tegra30.c @@ -176,7 +176,6 @@ int __init tegra30_cpuidle_init(void) dev = &per_cpu(tegra_idle_device, cpu); dev->cpu = cpu; - dev->state_count = drv->state_count; ret = cpuidle_register_device(dev); if (ret) { pr_err("CPU%u: CPUidle device registration failed\n",