From patchwork Thu Oct 3 15:56:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20793 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f199.google.com (mail-qc0-f199.google.com [209.85.216.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2392925CAB for ; Thu, 3 Oct 2013 15:57:30 +0000 (UTC) Received: by mail-qc0-f199.google.com with SMTP id u18sf4978552qcx.10 for ; Thu, 03 Oct 2013 08:57:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state: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=i4btrv0reRlc1HdX+iUt7ubjYKgfUcgH0VbWnOtN9MMppNBIS25V22K6gq41NsiaZN nwDbUMKEgVmzh15TZi/7T68GiGtRsyG8hDM/cjyJqD/A9KiuAtl7OlE8sAiJk1mKgDQa qczDP6SusBGn5+VF/wkHJFM5EuSkW6g/6B6hUTvB5pytJAWDjd12LwTupC5nCVF8SFqQ uDDj2egyPj+GCX5w/lkhTYw8/Blx7makw5Eja6JGoammppWhOqSrU5qsn+iPjAvi40iv 4J45t2b8CFnBFegReUJ4kUnpnrItrlWIeqqdo70rw5FnmA3kIANrrxRZhLV1iJjXIf+7 r+7A== X-Received: by 10.236.135.79 with SMTP id t55mr8578176yhi.39.1380815849978; Thu, 03 Oct 2013 08:57:29 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.35.244 with SMTP id l20ls1005921qej.98.gmail; Thu, 03 Oct 2013 08:57:29 -0700 (PDT) X-Received: by 10.220.181.136 with SMTP id by8mr8121450vcb.11.1380815849828; Thu, 03 Oct 2013 08:57:29 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id ta3si1874965vcb.146.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 03 Oct 2013 08:57:29 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.173 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.173; Received: by mail-vc0-f173.google.com with SMTP id if17so1079091vcb.4 for ; Thu, 03 Oct 2013 08:57:29 -0700 (PDT) X-Gm-Message-State: ALoCoQmpPhX/MuN0rQymJt+zNIZdy04peh+V1HFd6K4dqnQuZuj1ywlJaOzk0W8h01+kZfDIlznO X-Received: by 10.58.151.132 with SMTP id uq4mr571474veb.30.1380815849732; Thu, 03 Oct 2013 08:57:29 -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 u4csp189168vcz; Thu, 3 Oct 2013 08:57:29 -0700 (PDT) X-Received: by 10.66.122.100 with SMTP id lr4mr10414915pab.164.1380815848756; Thu, 03 Oct 2013 08:57:28 -0700 (PDT) Received: from mail-pa0-f46.google.com (mail-pa0-f46.google.com [209.85.220.46]) by mx.google.com with ESMTPS id p8si6074224pbc.91.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 03 Oct 2013 08:57:28 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.46 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.46; Received: by mail-pa0-f46.google.com with SMTP id fa1so2802053pad.19 for ; Thu, 03 Oct 2013 08:57:28 -0700 (PDT) X-Received: by 10.68.189.193 with SMTP id gk1mr1298013pbc.134.1380815848240; Thu, 03 Oct 2013 08:57:28 -0700 (PDT) Received: from localhost ([122.167.152.64]) by mx.google.com with ESMTPSA id qn1sm9034407pbc.34.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 03 Oct 2013 08:57:27 -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 V2 04/16] cpuidle: make __cpuidle_device_init() return void Date: Thu, 3 Oct 2013 21:26:43 +0530 Message-Id: <7f788ee893ccb6c283495488ad70ffd0205f0c11.1380815504.git.viresh.kumar@linaro.org> 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.220.173 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)