From patchwork Thu May 10 08:44:44 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 8516 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 15CFC23E37 for ; Thu, 10 May 2012 08:44:53 +0000 (UTC) Received: from mail-yx0-f180.google.com (mail-yx0-f180.google.com [209.85.213.180]) by fiordland.canonical.com (Postfix) with ESMTP id DA6FEA187FB for ; Thu, 10 May 2012 08:44:52 +0000 (UTC) Received: by yenq6 with SMTP id q6so1509877yen.11 for ; Thu, 10 May 2012 01:44:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=YHv4OPOhuW1TVNVdyHpYcAWRyzU4q6wIrWeswuYixGo=; b=Lpr8b/umPdVOD/T/o4tRtomwp5t3NuHUXL+4CGkBNgv2IrzsixfrhxRq+44QToh3pL 3VLlKNWmX4dspkixKNsiyWxeD2dkoDeD3TvB7rIntblHqFMHDhn2wl98cbHfU/GkSuhM cAPoswDoMpER6LSAUnSzmuZBNtKNnfNGLISYBB7Xcz2SSgQ26QE9MBawwApeoZ/HNQJY EiKa9zOslo9fm0nNqRxxNSQigENFTxIEm01MiGZhjWEbGCk95JWtyoImjav8atk6CObf pyo0yJAX8tQlwYCa8omGcahSEE0LVc3N/nNtMtwwYLm0gG5OzHPOoxnztp7O13pVkybr lV8A== Received: by 10.42.122.76 with SMTP id m12mr1527690icr.38.1336639492121; Thu, 10 May 2012 01:44:52 -0700 (PDT) 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.231.73.147 with SMTP id q19csp77488ibj; Thu, 10 May 2012 01:44:51 -0700 (PDT) Received: by 10.180.24.7 with SMTP id q7mr14198160wif.11.1336639489991; Thu, 10 May 2012 01:44:49 -0700 (PDT) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by mx.google.com with ESMTPS id i1si885275wie.38.2012.05.10.01.44.49 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 10 May 2012 01:44:49 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.172 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=209.85.212.172; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.172 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) smtp.mail=daniel.lezcano@linaro.org Received: by wibhr2 with SMTP id hr2so165144wib.13 for ; Thu, 10 May 2012 01:44:49 -0700 (PDT) Received: by 10.180.80.9 with SMTP id n9mr7474110wix.14.1336639489453; Thu, 10 May 2012 01:44:49 -0700 (PDT) Received: from localhost.localdomain (AToulouse-159-1-109-226.w92-134.abo.wanadoo.fr. [92.134.236.226]) by mx.google.com with ESMTPS id j3sm3109747wiw.1.2012.05.10.01.44.47 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 10 May 2012 01:44:48 -0700 (PDT) From: Daniel Lezcano To: nsekhar@ti.com, khilman@ti.com, lenb@kernel.org Cc: davinci-linux-open-source@linux.davincidsp.com, linux-pm@lists.linux-foundation.org, patches@linaro.org, linaro-dev@lists.linaro.org Subject: [PATCH 1/2] ARM: DAVINCI: cpuidle - remove useless state count initialization Date: Thu, 10 May 2012 10:44:44 +0200 Message-Id: <1336639485-26955-2-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1336639485-26955-1-git-send-email-daniel.lezcano@linaro.org> References: <1336639485-26955-1-git-send-email-daniel.lezcano@linaro.org> X-Gm-Message-State: ALoCoQl3ybRV56Mv4MNjbV4SlnKWhEu/IwWtZEK25iXirBMHB2m3ECU+wfCBREnRxDxaw5CM1w+c The state count is initialized in the driver structure, the cpuidle core uses it to initialize the device state count. Signed-off-by: Daniel Lezcano --- arch/arm/mach-davinci/cpuidle.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-davinci/cpuidle.c b/arch/arm/mach-davinci/cpuidle.c index 9107691..f0f179c 100644 --- a/arch/arm/mach-davinci/cpuidle.c +++ b/arch/arm/mach-davinci/cpuidle.c @@ -128,8 +128,6 @@ static int __init davinci_cpuidle_probe(struct platform_device *pdev) davinci_states[1].flags |= DAVINCI_CPUIDLE_FLAGS_DDR2_PWDN; cpuidle_set_statedata(&device->states_usage[1], &davinci_states[1]); - 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");