From patchwork Fri Feb 1 13:48:15 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 14401 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 B561423E39 for ; Fri, 1 Feb 2013 13:48:32 +0000 (UTC) Received: from mail-vb0-f49.google.com (mail-vb0-f49.google.com [209.85.212.49]) by fiordland.canonical.com (Postfix) with ESMTP id D6E42A18275 for ; Fri, 1 Feb 2013 13:48:31 +0000 (UTC) Received: by mail-vb0-f49.google.com with SMTP id s24so2456566vbi.36 for ; Fri, 01 Feb 2013 05:48:31 -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=3Rz5ZH0lzTmKwsbqeKeUhjwFNQjtF/lvwrZ86UKXqAc=; b=H0rHdYWPTP5dts17a5Yb8SIhk0cKMyjpOW6HpsHDMa57O74oy+KMkNa0a/58M6gK6J cB2+5jsvL0NL+pSmSfbCzkAG7VGYjd7uLakPf2J2WHWI2Xv5pbGMjpwTtoRjDi8wCx3s 6TbH5TJlcTpjnA7wAQ/L6IBSO6pxBI1FxRoPcDCswLtX/xqjU3aIe0iIJeXShbY2ALK9 go10e3xqZIN5HH2SxpvmkLABttjmxZGXURa1MyIgzrKtFbuxRNwyK0SGyYhmQBqXcX8Q kfoYuWqISJvxuNnLf5RrhHgvrJvr6iKj0y6vAK/hFmC5CpBwIOQsQ+L/zQMTkifZX8Pb j0Tg== X-Received: by 10.220.151.141 with SMTP id c13mr11310844vcw.64.1359726511369; Fri, 01 Feb 2013 05:48:31 -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 zo8csp117367vec; Fri, 1 Feb 2013 05:48:26 -0800 (PST) X-Received: by 10.180.73.116 with SMTP id k20mr2960359wiv.21.1359726506429; Fri, 01 Feb 2013 05:48:26 -0800 (PST) Received: from mail-we0-x234.google.com ([2a00:1450:400c:c03::234]) by mx.google.com with ESMTPS id p6si2927198wja.9.2013.02.01.05.48.26 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 01 Feb 2013 05:48:26 -0800 (PST) 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; Authentication-Results: mx.google.com; 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) smtp.mail=daniel.lezcano@linaro.org Received: by mail-we0-f180.google.com with SMTP id k14so2888305wer.25 for ; Fri, 01 Feb 2013 05:48:26 -0800 (PST) X-Received: by 10.181.13.195 with SMTP id fa3mr3042926wid.8.1359726504342; Fri, 01 Feb 2013 05:48:24 -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 bd7sm3692703wib.8.2013.02.01.05.48.21 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 01 Feb 2013 05:48:23 -0800 (PST) From: Daniel Lezcano To: nsekhar@ti.com, khilman@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] davinci: cpuidle - remove useless initialization Date: Fri, 1 Feb 2013 14:48:15 +0100 Message-Id: <1359726495-8024-5-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1359726495-8024-1-git-send-email-daniel.lezcano@linaro.org> References: <1359726495-8024-1-git-send-email-daniel.lezcano@linaro.org> X-Gm-Message-State: ALoCoQmdlv7S328f2MaAxRAB8QgVfOsbv8brVcYt6iOEEU8HSCpfl5pVRDqYL3KbjN0KmSGgnJTR The device->state_count is initialized in the cpuidle_register_device function. Signed-off-by: Daniel Lezcano --- 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 28cc8e8..144839b 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");