From patchwork Sun Sep 22 01:20:56 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20506 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f70.google.com (mail-yh0-f70.google.com [209.85.213.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 71B4A25E85 for ; Sun, 22 Sep 2013 01:21:50 +0000 (UTC) Received: by mail-yh0-f70.google.com with SMTP id i72sf1933637yha.9 for ; Sat, 21 Sep 2013 18:21:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:in-reply-to:references :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=DDQK7qGEfmIoJhhRqqkqDsqQWi3iu1MP6W+ZZqGoAoE=; b=PJ/ybn5U1/U35exlVh652U/xLrB1KBzJCOeuWp4/OxfwLefViROP9G6Y5wWowS1Vbc 2TS2P6TdfUXoI3MPcXY0oq98gpn4600OP71lSpjOgOBSVPoxVXu4jz7WW8eUytJLgBt8 xfma5TCTJHrw3UuUni8FDj5pGEmITprwsr4YtdFOZHNnPqZVWtfv9V9dcuHLvzCBlXMY r/NtGh4t3bZFGIBKMaFmwBFvmJA2nCFW0OR3uFQrJC6SScU9wJzOvov4UJqtQMWfSOnk EBb/2/6+klv74y7n/2RblSCr40jqwrvm9nDm96DESYpz1cUCOj3r1Qs5BlSKKNzgjiYJ NxuQ== X-Gm-Message-State: ALoCoQnjV0rh6Hr4BVJXXG52t69jRWQecFaisLxApqDVOxPMq2Hj4ibr2CgTW0Cymvp6sr0H3IKA X-Received: by 10.224.112.133 with SMTP id w5mr6585932qap.5.1379812910209; Sat, 21 Sep 2013 18:21:50 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.29.229 with SMTP id n5ls765621qeh.73.gmail; Sat, 21 Sep 2013 18:21:50 -0700 (PDT) X-Received: by 10.58.161.116 with SMTP id xr20mr14056480veb.2.1379812910107; Sat, 21 Sep 2013 18:21:50 -0700 (PDT) Received: from mail-ve0-f169.google.com (mail-ve0-f169.google.com [209.85.128.169]) by mx.google.com with ESMTPS id cl2si4515609vdc.140.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 21 Sep 2013 18:21:50 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.169; Received: by mail-ve0-f169.google.com with SMTP id db12so1481079veb.28 for ; Sat, 21 Sep 2013 18:21:50 -0700 (PDT) X-Received: by 10.52.161.231 with SMTP id xv7mr12028679vdb.1.1379812910022; Sat, 21 Sep 2013 18:21:50 -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.220.174.196 with SMTP id u4csp91707vcz; Sat, 21 Sep 2013 18:21:49 -0700 (PDT) X-Received: by 10.67.23.199 with SMTP id ic7mr17134238pad.73.1379812909214; Sat, 21 Sep 2013 18:21:49 -0700 (PDT) Received: from mail-pb0-f41.google.com (mail-pb0-f41.google.com [209.85.160.41]) by mx.google.com with ESMTPS id g4si17483703pao.160.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 21 Sep 2013 18:21:49 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.41 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.41; Received: by mail-pb0-f41.google.com with SMTP id rp2so1835160pbb.28 for ; Sat, 21 Sep 2013 18:21:48 -0700 (PDT) X-Received: by 10.68.90.129 with SMTP id bw1mr15965810pbb.111.1379812908827; Sat, 21 Sep 2013 18:21:48 -0700 (PDT) Received: from localhost ([122.167.152.64]) by mx.google.com with ESMTPSA id hx1sm24623870pbb.35.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 21 Sep 2013 18:21:48 -0700 (PDT) From: Viresh Kumar To: rjw@sisk.pl, daniel.lezcano@linaro.org Cc: linaro-kernel@lists.linaro.org, patches@linaro.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Viresh Kumar Subject: [PATCH 04/21] cpuidle: make __cpuidle_device_init() return void Date: Sun, 22 Sep 2013 06:50:56 +0530 Message-Id: X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: References: In-Reply-To: References: X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.169 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: , __cpuidle_device_init() doesn't return anything except zero and so doesn't really need a return type other than void. Signed-off-by: Viresh Kumar --- drivers/cpuidle/cpuidle.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/cpuidle/cpuidle.c b/drivers/cpuidle/cpuidle.c index 8827c02..211e504 100644 --- a/drivers/cpuidle/cpuidle.c +++ b/drivers/cpuidle/cpuidle.c @@ -358,12 +358,10 @@ static void __cpuidle_unregister_device(struct cpuidle_device *dev) module_put(drv->owner); } -static int __cpuidle_device_init(struct cpuidle_device *dev) +static void __cpuidle_device_init(struct cpuidle_device *dev) { memset(dev->states_usage, 0, sizeof(dev->states_usage)); dev->last_residency = 0; - - return 0; } /** @@ -410,9 +408,7 @@ int cpuidle_register_device(struct cpuidle_device *dev) if (dev->registered) goto out_unlock; - ret = __cpuidle_device_init(dev); - if (ret) - goto out_unlock; + __cpuidle_device_init(dev); ret = __cpuidle_register_device(dev); if (ret)