From patchwork Tue Aug 13 10:20:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 2843550 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id AAB20BF546 for ; Tue, 13 Aug 2013 10:22:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A13A2204AF for ; Tue, 13 Aug 2013 10:22:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AFA81204A2 for ; Tue, 13 Aug 2013 10:22:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755784Ab3HMKWu (ORCPT ); Tue, 13 Aug 2013 06:22:50 -0400 Received: from mail-pd0-f176.google.com ([209.85.192.176]:58429 "EHLO mail-pd0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753615Ab3HMKWt (ORCPT ); Tue, 13 Aug 2013 06:22:49 -0400 Received: by mail-pd0-f176.google.com with SMTP id q10so4685883pdj.35 for ; Tue, 13 Aug 2013 03:22:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=r2abOu/GfO0D7Rd0zfnb3ORI0w3mW0X//pM1xscU0v8=; b=LAeYYjfkelsBjCv9yKHYTjAVP4KT47wCT6eOe3FzrcTZuxhfZ6r1TFE8pbdGiF34FL ceiVVI3P7KByig6mRabvtu4/1r/vDdY3KB2Fy9buySAe48v3HayNVdOuVAUZZ30qIBqC sXBtuxVs8ill38aD9y0dUdevNwcimlpmq1KNTWceSIE0VaJWIQxGN33DNDAW7Tf5NH0V dZVIZg3/1h7u25W3uSoeeiGogYtzy2OsC4H1tOieYPs0HXT7OXAf0gcWN5H1bPOSGb+P tfz9/5HxAdtwwvlgYDJ1lHWB2sexVN1JPLG7l010JVVVzrOtk0JD8/IUzbrHHr9TcKqI Dc+Q== X-Gm-Message-State: ALoCoQnSTafsSByWgaLT7OAFaD834QSCqcg7ewfWZlEl/rG7//KRv1YAAeG3+R9QLkQOna0YU06A X-Received: by 10.66.155.102 with SMTP id vv6mr3785737pab.89.1376389369113; Tue, 13 Aug 2013 03:22:49 -0700 (PDT) Received: from localhost ([218.17.215.175]) by mx.google.com with ESMTPSA id fk4sm45789118pab.23.2013.08.13.03.22.06 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 13 Aug 2013 03:22:48 -0700 (PDT) From: Hanjun Guo To: Viresh Kumar Cc: "Rafael J. Wysocki" , cpufreq@vger.kernel.org, linux-pm@vger.kernel.org, patches@linaro.org, linaro-kernel@lists.linaro.org, linaro-acpi@lists.linaro.org, Hanjun Guo Subject: [PATCH 2/3] cpufreq / pxa2xx: Fix __init attribute locations Date: Tue, 13 Aug 2013 18:20:09 +0800 Message-Id: <1376389210-11470-2-git-send-email-hanjun.guo@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1376389210-11470-1-git-send-email-hanjun.guo@linaro.org> References: <1376389210-11470-1-git-send-email-hanjun.guo@linaro.org> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-8.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_WEB, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP __init belongs after the return type on functions, not before it. Signed-off-by: Hanjun Guo --- drivers/cpufreq/pxa2xx-cpufreq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/cpufreq/pxa2xx-cpufreq.c b/drivers/cpufreq/pxa2xx-cpufreq.c index fb3981a..8749eaf 100644 --- a/drivers/cpufreq/pxa2xx-cpufreq.c +++ b/drivers/cpufreq/pxa2xx-cpufreq.c @@ -191,7 +191,7 @@ static int pxa_cpufreq_change_voltage(pxa_freqs_t *pxa_freq) return ret; } -static __init void pxa_cpufreq_init_voltages(void) +static void __init pxa_cpufreq_init_voltages(void) { vcc_core = regulator_get(NULL, "vcc_core"); if (IS_ERR(vcc_core)) { @@ -207,7 +207,7 @@ static int pxa_cpufreq_change_voltage(pxa_freqs_t *pxa_freq) return 0; } -static __init void pxa_cpufreq_init_voltages(void) { } +static void __init pxa_cpufreq_init_voltages(void) { } #endif static void find_freq_tables(struct cpufreq_frequency_table **freq_table,