From patchwork Mon Feb 4 12:01:44 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 14526 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 B9FA623F96 for ; Mon, 4 Feb 2013 12:01:59 +0000 (UTC) Received: from mail-vb0-f52.google.com (mail-vb0-f52.google.com [209.85.212.52]) by fiordland.canonical.com (Postfix) with ESMTP id 770E0A192D3 for ; Mon, 4 Feb 2013 12:01:59 +0000 (UTC) Received: by mail-vb0-f52.google.com with SMTP id fa15so3737435vbb.25 for ; Mon, 04 Feb 2013 04:01:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=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; bh=DdFOg8iR0y1gdZXrYVW45UgswotRuz6w8wgEKndGdG0=; b=lSbDgS+SPuLQbdBUTKyWddzkqdNZ3pHXdsBlDqjtyWzyiKqE9H76sNWIUlNkdPByFe E80HvZCSv7xhCd8JnSvM+wbIEZzS/3JTC25O9skVHkQof0gpN1nZKfl5es4nXLYn8SQZ e1BpiECJY1cB1lpqrxeAzWoOwja4ZK5XY+86iYHv14No6cTBwS/M7xpok+qzhXM9iGbt USKJ/tJ9kr2kGEvYx4dxfpkuvaL7P3edNr1YwExZlMkoYJ9RS7fdY4JleGdHrBDI4mRT 1UBdLriikSabl6Nrl6zbqKhBd/qQpF1OVzNmf7ATXN/DoZ7sxm/ft0/jC+IWsl7NV6Xj sjzA== X-Received: by 10.58.231.196 with SMTP id ti4mr17942243vec.25.1359979318997; Mon, 04 Feb 2013 04:01:58 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.58.252.8 with SMTP id zo8csp83319vec; Mon, 4 Feb 2013 04:01:58 -0800 (PST) X-Received: by 10.180.97.68 with SMTP id dy4mr9907352wib.7.1359979318139; Mon, 04 Feb 2013 04:01:58 -0800 (PST) Received: from mail-we0-x235.google.com ([2a00:1450:400c:c03::235]) by mx.google.com with ESMTPS id l3si3465470wiz.122.2013.02.04.04.01.57 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 04 Feb 2013 04:01:58 -0800 (PST) Received-SPF: neutral (google.com: 2a00:1450:400c:c03::235 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=2a00:1450:400c:c03::235; Authentication-Results: mx.google.com; spf=neutral (google.com: 2a00:1450:400c:c03::235 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) smtp.mail=daniel.lezcano@linaro.org Received: by mail-we0-f181.google.com with SMTP id t44so4752959wey.40 for ; Mon, 04 Feb 2013 04:01:57 -0800 (PST) X-Received: by 10.180.86.36 with SMTP id m4mr9952634wiz.5.1359979317734; Mon, 04 Feb 2013 04:01:57 -0800 (PST) Received: from mai.home (AToulouse-654-1-332-150.w86-199.abo.wanadoo.fr. [86.199.219.150]) by mx.google.com with ESMTPS id j9sm12967916wia.5.2013.02.04.04.01.56 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 04 Feb 2013 04:01:57 -0800 (PST) From: Daniel Lezcano To: khilman@deeprootsystems.com, nsekhar@ti.com Cc: patches@linaro.org, linaro-dev@lists.linaro.org, davinci-linux-open-source@linux.davincidsp.com, lenb@kernel.org, linux-pm@vger.kernel.org Subject: [PATCH 4/4][V2] davinci: cpuidle - remove useless initialization Date: Mon, 4 Feb 2013 13:01:44 +0100 Message-Id: <1359979304-8715-5-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1359979304-8715-1-git-send-email-daniel.lezcano@linaro.org> References: <1359979304-8715-1-git-send-email-daniel.lezcano@linaro.org> X-Gm-Message-State: ALoCoQkSH9URq7LRxUmX/SrSMo24yrk9ge06uJY6YYB6T4FqkCVvd3yV1QDYuAXvhv5B2DbTbM1u The device->state_count is initialized in the cpuidle_register_device function. Signed-off-by: Daniel Lezcano Acked-by: Sekhar Nori --- arch/arm/mach-davinci/cpuidle.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/mach-davinci/cpuidle.c b/arch/arm/mach-davinci/cpuidle.c index 5e430bf..5ac9e93 100644 --- a/arch/arm/mach-davinci/cpuidle.c +++ b/arch/arm/mach-davinci/cpuidle.c @@ -96,8 +96,6 @@ static int __init davinci_cpuidle_probe(struct platform_device *pdev) ddr2_pdown = pdata->ddr2_pdown; - device->state_count = DAVINCI_CPUIDLE_MAX_STATES; - ret = cpuidle_register_driver(&davinci_idle_driver); if (ret) { dev_err(&pdev->dev, "failed to register driver\n");