From patchwork Fri Apr 12 12:35:56 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 16103 Return-Path: X-Original-To: linaro@staging.patches.linaro.org Delivered-To: linaro@staging.patches.linaro.org Received: from mail-ye0-f200.google.com (mail-ye0-f200.google.com [209.85.213.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7498926EB0 for ; Fri, 12 Apr 2013 12:37:13 +0000 (UTC) Received: by mail-ye0-f200.google.com with SMTP id r11sf3647573yen.7 for ; Fri, 12 Apr 2013 05:36:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=IyyTCQUDogZ4rVGVoyLqQ3clegrqFi5CjTFY/bIoOZg=; b=NZTxe4UkcvccPzz304vlVd9Kyt7UYenw+UjHT/Fjd4Qq3D1n0LO3SS4QbNQhLHBgOY yMkR6R6V2j4YuysAEvvPLhEfJMQiI1zutjH3FhWwwfErTT/YgJgZMGHxKq1LfPJ9KcR/ aOxa8S0NHhk0W/GcS61fwY1Fa9jqc0iZH8La59MS6JK8zIURrZXm6bvvrD676VtaWsGS QxZmToJ5c781C8cYhdiWdzYRc9KL/PeTCGopmu2W5d0jxR825HE3zGFrpBGhtqfE8aCg mWqdMSvwxd/gEeHiWKxHhQizSuVLKOmoUE2XSpAsEZUZBOMmQwaiMTGja+Eh377f2y7h 63VQ== X-Received: by 10.236.130.147 with SMTP id k19mr5442279yhi.43.1365770209667; Fri, 12 Apr 2013 05:36:49 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.40.226 with SMTP id a2ls1330286qel.43.gmail; Fri, 12 Apr 2013 05:36:49 -0700 (PDT) X-Received: by 10.52.34.168 with SMTP id a8mr7026446vdj.75.1365770209506; Fri, 12 Apr 2013 05:36:49 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id d10si6381057vdv.2.2013.04.12.05.36.49 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 12 Apr 2013 05:36:49 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.171 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id ha12so2026407vcb.2 for ; Fri, 12 Apr 2013 05:36:49 -0700 (PDT) X-Received: by 10.220.73.68 with SMTP id p4mr8330600vcj.41.1365770209267; Fri, 12 Apr 2013 05:36:49 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.127.98 with SMTP id nf2csp64088veb; Fri, 12 Apr 2013 05:36:48 -0700 (PDT) X-Received: by 10.180.189.205 with SMTP id gk13mr3740475wic.25.1365770201941; Fri, 12 Apr 2013 05:36:41 -0700 (PDT) Received: from mail-we0-x231.google.com (mail-we0-x231.google.com [2a00:1450:400c:c03::231]) by mx.google.com with ESMTPS id l8si796021wia.73.2013.04.12.05.36.41 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 12 Apr 2013 05:36:41 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c03::231 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=2a00:1450:400c:c03::231; Received: by mail-we0-f177.google.com with SMTP id o45so1995017wer.22 for ; Fri, 12 Apr 2013 05:36:41 -0700 (PDT) X-Received: by 10.194.93.68 with SMTP id cs4mr17329116wjb.17.1365770201548; Fri, 12 Apr 2013 05:36:41 -0700 (PDT) Received: from mai.home (AToulouse-654-1-349-85.w90-55.abo.wanadoo.fr. [90.55.188.85]) by mx.google.com with ESMTPS id ej8sm3043646wib.9.2013.04.12.05.36.38 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 12 Apr 2013 05:36:40 -0700 (PDT) From: Daniel Lezcano To: rjw@sisk.pl Cc: linus.walleij@linaro.org, jason@lakedaemon.net, andrew@lunn.ch, kernel@pengutronix.de, swarren@wwwdotorg.org, santosh.shilimkar@ti.com, nicolas.ferre@atmel.com, plagnioj@jcrosoft.com, linux@maxim.org.za, rob.herring@calxeda.com, nsekhar@ti.com, horms@verge.net.au, magnus.damm@gmail.com, deepthi@linux.vnet.ibm.com, lethal@linux-sh.org, jkosina@suse.cz, kgene.kim@samsung.com, khilman@deeprootsystems.com, tony@atomide.com, linux-pm@vger.kernel.org, patches@linaro.org, linux-arm-kernel@lists.infradead.org, linaro-kernel@lists.linaro.org, josephl@nvidia.com Subject: [V3 patch 10/19] ARM: s3c64xx: cpuidle: use init/exit common routine Date: Fri, 12 Apr 2013 14:35:56 +0200 Message-Id: <1365770165-27096-11-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1365770165-27096-1-git-send-email-daniel.lezcano@linaro.org> References: <1365770165-27096-1-git-send-email-daniel.lezcano@linaro.org> X-Gm-Message-State: ALoCoQleVgIwdmjH9o5zZlbGu6tWxoImk4lQNx4kRHarvfn+Iy66lHR0igdV4pcmepB4CP+YXZes X-Original-Sender: daniel.lezcano@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.171 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Remove the duplicated code and use the cpuidle common code for initialization. Signed-off-by: Daniel Lezcano --- arch/arm/mach-s3c64xx/cpuidle.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/arch/arm/mach-s3c64xx/cpuidle.c b/arch/arm/mach-s3c64xx/cpuidle.c index 852ff16..3c8ab07 100644 --- a/arch/arm/mach-s3c64xx/cpuidle.c +++ b/arch/arm/mach-s3c64xx/cpuidle.c @@ -40,8 +40,6 @@ static int s3c64xx_enter_idle(struct cpuidle_device *dev, return index; } -static DEFINE_PER_CPU(struct cpuidle_device, s3c64xx_cpuidle_device); - static struct cpuidle_driver s3c64xx_cpuidle_driver = { .name = "s3c64xx_cpuidle", .owner = THIS_MODULE, @@ -60,16 +58,6 @@ static struct cpuidle_driver s3c64xx_cpuidle_driver = { static int __init s3c64xx_init_cpuidle(void) { - int ret; - - cpuidle_register_driver(&s3c64xx_cpuidle_driver); - - ret = cpuidle_register_device(&s3c64xx_cpuidle_device); - if (ret) { - pr_err("Failed to register cpuidle device: %d\n", ret); - return ret; - } - - return 0; + return cpuidle_register(&s3c64xx_cpuidle_driver, NULL); } device_initcall(s3c64xx_init_cpuidle);