From patchwork Tue Apr 23 14:41:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 16352 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f199.google.com (mail-vc0-f199.google.com [209.85.220.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6F7E32391B for ; Tue, 23 Apr 2013 14:42:12 +0000 (UTC) Received: by mail-vc0-f199.google.com with SMTP id gf12sf1267715vcb.10 for ; Tue, 23 Apr 2013 07:41:23 -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 :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=fb8/8ui6bNFT8F30RzEhrzBg1U3XVJDPZNGVu/jHCpsA/jrAQrwOB1TIfR5XWcUBqk uc8ZEtE2rJ222KP5V83TcZEpuba/p+/ZrgZiNgHIpMJ03dmp2pOmUzBnk1NZ7K20UU2b v5DBg0R5+YEUU21e48MjXj/I59tU27hbMUMY/VHtfpefU8vEkqc5oe/ldnnLyUEdFlaA iW0pFwcEZdu+BkzQIchQwv44iey+H5Ivui8GTkSLISQfnLZLNeW8q5MyrJiMhzZQBDkj 1a5Y5MheSloeEWeWNlcFaa0VkTO7XgbQGRXfEvoHRHgDylZAStTcjk1+OsvDrDO2RhDx uo4Q== X-Received: by 10.236.133.98 with SMTP id p62mr14783639yhi.10.1366728083523; Tue, 23 Apr 2013 07:41:23 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.106.68 with SMTP id gs4ls341373qeb.17.gmail; Tue, 23 Apr 2013 07:41:23 -0700 (PDT) X-Received: by 10.52.97.41 with SMTP id dx9mr18716296vdb.33.1366728083380; Tue, 23 Apr 2013 07:41:23 -0700 (PDT) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by mx.google.com with ESMTPS id c9si18628972vcw.73.2013.04.23.07.41.23 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 23 Apr 2013 07:41:23 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.170 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.170; Received: by mail-vc0-f170.google.com with SMTP id hv10so694781vcb.1 for ; Tue, 23 Apr 2013 07:41:23 -0700 (PDT) X-Received: by 10.52.71.4 with SMTP id q4mr19142995vdu.8.1366728083269; Tue, 23 Apr 2013 07:41:23 -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 nf2csp128581veb; Tue, 23 Apr 2013 07:41:22 -0700 (PDT) X-Received: by 10.180.88.33 with SMTP id bd1mr33325920wib.18.1366728081367; Tue, 23 Apr 2013 07:41:21 -0700 (PDT) Received: from mail-wi0-x230.google.com (mail-wi0-x230.google.com [2a00:1450:400c:c05::230]) by mx.google.com with ESMTPS id cp3si7684505wjb.252.2013.04.23.07.41.20 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 23 Apr 2013 07:41:21 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c05::230 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=2a00:1450:400c:c05::230; Received: by mail-wi0-f176.google.com with SMTP id hj19so6177232wib.3 for ; Tue, 23 Apr 2013 07:41:20 -0700 (PDT) X-Received: by 10.194.5.196 with SMTP id u4mr61928605wju.54.1366728080768; Tue, 23 Apr 2013 07:41:20 -0700 (PDT) Received: from mai.home (AToulouse-654-1-479-219.w86-201.abo.wanadoo.fr. [86.201.194.219]) by mx.google.com with ESMTPSA id ek4sm26626981wib.11.2013.04.23.07.41.18 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 23 Apr 2013 07:41:19 -0700 (PDT) From: Daniel Lezcano To: Cc: ben-linux@fluff.org, kgene.kim@samsung.com, horms+renesas@verge.net.au, lethal@linux-sh.org, patches@linaro.org, linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org Subject: [PATCH 1/2] ARM: s3c64xx: cpuidle: use init/exit common routine Date: Tue, 23 Apr 2013 16:41:16 +0200 Message-Id: <1366728077-18988-1-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQnBnGk6xbJJrwse3c1KaIZUPd+3S8QuSBzTEviHYLyyN8EQT0SsUSsznYFKKac3XvPr49w+ X-Original-Sender: daniel.lezcano@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.170 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 Acked-by: Kukjin Kim --- 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);