From patchwork Fri Sep 7 10:19:29 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 11230 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 27DA923E41 for ; Fri, 7 Sep 2012 10:19:47 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id CCDE1A18D99 for ; Fri, 7 Sep 2012 10:19:46 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id j25so2827276iaf.11 for ; Fri, 07 Sep 2012 03:19:46 -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=ZFbttgt5qws56+tWzkPxjUyaIJThR30cda/xtfI3oXs=; b=IgS4bGLX1FEtDJ/MpkTJtopQM36oiYjzSHIXgL5XKPqAsEnvWrHfLuZOAD6XkEYPPo ZzUdn0KlFYW7Ifn/GZZK42BbCxFlez4e5Qq1kNsn5D03u+toZ76hVzowQeqXv7R81eMw sr4T/u/bm6ICU6cfR14Rbfk1bxJDYMPr6COdyr35to15dF4Yd9L7evocH7VlRP3I9s0z 2w7S3tQXOR38x1Sa+/DpE+n5w4NZZi2k8anvZRrXc6Fmdl4fetTdFLqHP+2o4tNSd9Tp UmQHqBkIDPRUiSzZ54r8XLcgdwFCZKMuiebkXF0kwr9yptRxBaZ1fZftZajRBRGpoXng S07w== Received: by 10.50.217.227 with SMTP id pb3mr27616172igc.28.1347013186614; Fri, 07 Sep 2012 03:19:46 -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.50.184.232 with SMTP id ex8csp371146igc; Fri, 7 Sep 2012 03:19:45 -0700 (PDT) Received: by 10.204.13.82 with SMTP id b18mr2403686bka.118.1347013185271; Fri, 07 Sep 2012 03:19:45 -0700 (PDT) Received: from mail-bk0-f50.google.com (mail-bk0-f50.google.com [209.85.214.50]) by mx.google.com with ESMTPS id hy16si4637905bkc.57.2012.09.07.03.19.44 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 07 Sep 2012 03:19:45 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.214.50 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=209.85.214.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.214.50 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-bk0-f50.google.com with SMTP id j5so1367058bkw.37 for ; Fri, 07 Sep 2012 03:19:44 -0700 (PDT) Received: by 10.205.126.13 with SMTP id gu13mr2323180bkc.79.1347013184614; Fri, 07 Sep 2012 03:19:44 -0700 (PDT) Received: from localhost.localdomain (AToulouse-651-1-16-21.w92-149.abo.wanadoo.fr. [92.149.191.21]) by mx.google.com with ESMTPS id n5sm3018481bkv.14.2012.09.07.03.19.42 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 07 Sep 2012 03:19:43 -0700 (PDT) From: Daniel Lezcano To: rjw@sisk.pl, lenb@kernel.org Cc: linux-pm@vger.kernel.org, linux-acpi@vger.kernel.org, patches@linaro.org, linaro-dev@lists.linaro.org, pdeschrijver@nvidia.com, lorenzo.pieralisi@arm.com Subject: [PATCH 3/6] acpi : remove pointless cpuidle device state_count init Date: Fri, 7 Sep 2012 12:19:29 +0200 Message-Id: <1347013172-12465-4-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1347013172-12465-1-git-send-email-daniel.lezcano@linaro.org> References: <1347013172-12465-1-git-send-email-daniel.lezcano@linaro.org> X-Gm-Message-State: ALoCoQn/mbThYQghyqqZFU6sDKn8Z1jrJZlATjRy4dZ2WILDAmrLnO0CEnIdsixSix6bEBlsrx4H The cpuidle core takes care of filling this field from drv->state_count. Signed-off-by: Daniel Lezcano --- drivers/acpi/processor_idle.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index 084b1d2..fc4757e 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -1035,8 +1035,6 @@ static int acpi_processor_setup_cpuidle_cx(struct acpi_processor *pr) break; } - dev->state_count = count; - if (!count) return -EINVAL;