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: 2090921 Return-Path: X-Original-To: patchwork-davinci@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from arroyo.ext.ti.com (arroyo.ext.ti.com [192.94.94.40]) by patchwork2.kernel.org (Postfix) with ESMTP id 03780DFE82 for ; Mon, 4 Feb 2013 12:02:32 +0000 (UTC) Received: from dlelxv30.itg.ti.com ([172.17.2.17]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id r14C2Ws7023683 for ; Mon, 4 Feb 2013 06:02:32 -0600 Received: from DLEE74.ent.ti.com (dlee74.ent.ti.com [157.170.170.8]) by dlelxv30.itg.ti.com (8.13.8/8.13.8) with ESMTP id r14C2Wlu025712 for ; Mon, 4 Feb 2013 06:02:32 -0600 Received: from dlelxv23.itg.ti.com (172.17.1.198) by DLEE74.ent.ti.com (157.170.170.8) with Microsoft SMTP Server id 14.1.323.3; Mon, 4 Feb 2013 06:02:32 -0600 Received: from linux.omap.com (dlelxs01.itg.ti.com [157.170.227.31]) by dlelxv23.itg.ti.com (8.13.8/8.13.8) with ESMTP id r14C2WTw026947 for ; Mon, 4 Feb 2013 06:02:32 -0600 Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 73BB880627 for ; Mon, 4 Feb 2013 06:02:32 -0600 (CST) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp51.itg.ti.com (dflp51.itg.ti.com [128.247.22.94]) by linux.omap.com (Postfix) with ESMTP id B52C98062B for ; Mon, 4 Feb 2013 06:02:01 -0600 (CST) Received: from medina.ext.ti.com (medina.ext.ti.com [192.91.81.31]) by dflp51.itg.ti.com (8.13.7/8.13.8) with ESMTP id r14C21TH028884 for ; Mon, 4 Feb 2013 06:02:01 -0600 (CST) Received: from mail6.bemta7.messagelabs.com (mail6.bemta7.messagelabs.com [216.82.255.55]) by medina.ext.ti.com (8.13.7/8.13.7) with ESMTP id r14C20mf020208 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 4 Feb 2013 06:02:01 -0600 Received: from [216.82.253.147:44744] by server-11.bemta-7.messagelabs.com id A1/5F-29415-833AF015; Mon, 04 Feb 2013 12:02:00 +0000 X-Env-Sender: daniel.lezcano@linaro.org X-Msg-Ref: server-3.tower-165.messagelabs.com!1359979318!12820427!1 X-Originating-IP: [209.85.212.177] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 6.7; banners=-,-,- X-VirusChecked: Checked Received: (qmail 26619 invoked from network); 4 Feb 2013 12:01:59 -0000 Received: from mail-wi0-f177.google.com (HELO mail-wi0-f177.google.com) (209.85.212.177) by server-3.tower-165.messagelabs.com with RC4-SHA encrypted SMTP; 4 Feb 2013 12:01:59 -0000 Received: by mail-wi0-f177.google.com with SMTP id hm14so2789723wib.4 for ; Mon, 04 Feb 2013 04:01:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=DdFOg8iR0y1gdZXrYVW45UgswotRuz6w8wgEKndGdG0=; b=l+AtlOz7A//MrDTvXSqsX6EdE5Q9k1+CUM8pz94CB/rGcEnb7qKCTzGSvSRQ3Gj4Og JLDGkAG4JFVr3Wq8DtD9xA5akY/PJf4OozIsF+ftJj9B+rLAlaKETL5Np328DSEggz6k sVQWrU4DWdQ02o4qANZcBrYONzUCrIG86zuBov+nRFY3+/z/LZjvicMrdVH7GMNS4wfS 9Bd+qTgVhqC1iq4kH4PxWyyiKrKDS0W2jF2uh78eS0/QrPn6Yp9OsdlY3pakWYIWWBrn eAJ5PpQy65Vkv2NPx93XKE39X4afxmcOgRypCZeQar9McPseGPWp9Nwi+5LZwGpXWIck yFyw== 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: , 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: ALoCoQk5xleG7OxlufYIfJ6v3URCT2wtV4cbEoNLtMWx+TF9/y//W+8iTdkWAjo7dgKO0SeEwlj6 CC: , , , , X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: Errors-To: davinci-linux-open-source-bounces+patchwork-davinci=patchwork.kernel.org@linux.davincidsp.com 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");