From patchwork Fri Mar 15 14:27:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 2278311 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 7E0CA3FC8F for ; Fri, 15 Mar 2013 14:33:53 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UGVey-00007i-U4; Fri, 15 Mar 2013 14:31:05 +0000 Received: from mail-wi0-x22d.google.com ([2a00:1450:400c:c05::22d]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UGVba-00070q-48 for linux-arm-kernel@lists.infradead.org; Fri, 15 Mar 2013 14:27:34 +0000 Received: by mail-wi0-f173.google.com with SMTP id hq4so567220wib.6 for ; Fri, 15 Mar 2013 07:27:31 -0700 (PDT) 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=UkkQ3+TDl367j1drk/isZIZZ/FkvHbrUMy/e8xwd1oA=; b=Nl3ruhMZBXb/Qa5P7HDztNr602VA8e9iGbD22I6fZ/a5KYIck1FZyda8KmOr1quA+i T/NUjenOnzZsKptiLOwe5Dnx/SN0gpqMe/PXZPJCtnreM7xRSch4yzZI4PUxLM9eKaPn fSxiKhVxWEXk8nro6sQjnGYpUK4Wj4e1QfVO2eGiHXUnkLUA+FmNTVl/4bfWL978868y MRRZOVrhid3ohhcwsVZJ9qm7zrhZNFmyqhO7PAyDWzc4zZK2CwekaWh7Zick6PKezcBn Z2ayVEob3YXX4tskzEJJA8YC/YHua/ej9so6pD5OhkvUPLSE9YZ9SVydvBZDqrl0T5E1 rzow== X-Received: by 10.180.91.106 with SMTP id cd10mr3396470wib.6.1363357651438; Fri, 15 Mar 2013 07:27:31 -0700 (PDT) Received: from mai.home (AToulouse-654-1-276-229.w90-5.abo.wanadoo.fr. [90.5.59.229]) by mx.google.com with ESMTPS id fv2sm3486696wib.6.2013.03.15.07.27.28 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 15 Mar 2013 07:27:30 -0700 (PDT) From: Daniel Lezcano To: linaro-kernel@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org Subject: [RFC patch 07/11] cpuidle / shmobile : use common ARM cpuidle driver Date: Fri, 15 Mar 2013 15:27:06 +0100 Message-Id: <1363357630-22214-8-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1363357630-22214-1-git-send-email-daniel.lezcano@linaro.org> References: <1363357630-22214-1-git-send-email-daniel.lezcano@linaro.org> X-Gm-Message-State: ALoCoQmltUXwCQ8CjUAZvO1wFgmdfyKxcx89kNWlJTS1FdssT2Tbnux6udbVx/03nUUQ11gWO7va X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130315_102734_309369_324FC850 X-CRM114-Status: GOOD ( 10.53 ) X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: andrew@lunn.ch, magnus.damm@gmail.com, ben-linux@fluff.org, nsekhar@ti.com, nicolas.ferre@atmel.com, rob.herring@calxeda.com, rjw@sisk.pl, kevin.hilman@linaro.org, horms@verge.net.au, kernel@pengutronix.de, kgene.kim@samsung.com, plagnioj@jcrosoft.com, linux@maxim.org.za, jason@lakedaemon.net, lenb@kernel.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Signed-off-by: Daniel Lezcano --- arch/arm/mach-shmobile/cpuidle.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/arch/arm/mach-shmobile/cpuidle.c b/arch/arm/mach-shmobile/cpuidle.c index 9e05026..11a0542 100644 --- a/arch/arm/mach-shmobile/cpuidle.c +++ b/arch/arm/mach-shmobile/cpuidle.c @@ -23,7 +23,6 @@ int shmobile_enter_wfi(struct cpuidle_device *dev, struct cpuidle_driver *drv, return 0; } -static struct cpuidle_device shmobile_cpuidle_dev; static struct cpuidle_driver shmobile_cpuidle_default_driver = { .name = "shmobile_cpuidle", .owner = THIS_MODULE, @@ -43,12 +42,5 @@ void shmobile_cpuidle_set_driver(struct cpuidle_driver *drv) int shmobile_cpuidle_init(void) { - struct cpuidle_device *dev = &shmobile_cpuidle_dev; - - cpuidle_register_driver(cpuidle_drv); - - dev->state_count = cpuidle_drv->state_count; - cpuidle_register_device(dev); - - return 0; + return arm_idle_init(cpuidle_drv); }