From patchwork Sat Aug 17 12:42:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 19280 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f70.google.com (mail-qa0-f70.google.com [209.85.216.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4B615248D9 for ; Sat, 17 Aug 2013 12:43:16 +0000 (UTC) Received: by mail-qa0-f70.google.com with SMTP id cd7sf2031315qab.9 for ; Sat, 17 Aug 2013 05:43:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id: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=+wIaN3HeqL4m8xUzxM4JwpnDyvzRDunKAGFwKxcIbGc=; b=IzsiFqKes5J171jYHlILHzikO2FqZfRC1Kmhifu1zUhIaOXJGnHlDS9Rye3GVEkGv5 XE6WsJT9dHkvryxRfYCvNOaz1PrD0ztmzQMaEygvF1+GBtkhO982vmCM800T1SMp+RJI Ddne6TT1Zu0z2kCAvzX+bscrhPAQGDU2p9qF6gQAP9hKmfxFrqA9p6YEQ4f9pJHcyDrM H28TGLnVKlgb+ZnN0c9Wx4UrAtg63MWHn3hRHa8M+7/8w5XJPTZ3qmJwdxg3NIApRdrc 0BxRLJdejhgALybz9GLcD3zIeXHOVOJtyY6mf8LKj/+956iEXi95vvh7h6sG+lRsteDC IxYg== X-Received: by 10.224.74.72 with SMTP id t8mr2897369qaj.4.1376743395873; Sat, 17 Aug 2013 05:43:15 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.105.225 with SMTP id gp1ls1097638qeb.55.gmail; Sat, 17 Aug 2013 05:43:15 -0700 (PDT) X-Received: by 10.58.152.3 with SMTP id uu3mr6270061veb.16.1376743395753; Sat, 17 Aug 2013 05:43:15 -0700 (PDT) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id zt2si551005vec.150.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 17 Aug 2013 05:43:15 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.178 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.178; Received: by mail-vc0-f178.google.com with SMTP id ha12so2062960vcb.37 for ; Sat, 17 Aug 2013 05:43:15 -0700 (PDT) X-Gm-Message-State: ALoCoQkK3Xeu5ClPsEC8kRr1u9y4Vi/oM+46li9A97W1zaaNM0aqJjXhZkg2bbb/XFzr1iTJ0KWY X-Received: by 10.52.35.98 with SMTP id g2mr2473621vdj.0.1376743395482; Sat, 17 Aug 2013 05:43:15 -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 u4csp6812vcz; Sat, 17 Aug 2013 05:43:14 -0700 (PDT) X-Received: by 10.50.87.36 with SMTP id u4mr1257625igz.40.1376743394663; Sat, 17 Aug 2013 05:43:14 -0700 (PDT) Received: from hanjun-Latitude-D630.domain ([115.204.90.166]) by mx.google.com with ESMTPS id u13si1098873igr.14.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 17 Aug 2013 05:43:14 -0700 (PDT) Received-SPF: neutral (google.com: 115.204.90.166 is neither permitted nor denied by best guess record for domain of hanjun@hanjun-latitude-d630.domain) client-ip=115.204.90.166; Received: from hanjun-Latitude-D630.domain (localhost [127.0.0.1]) by hanjun-Latitude-D630.domain (8.14.4/8.14.4/Debian-2ubuntu2) with ESMTP id r7HCh3Om009506; Sat, 17 Aug 2013 20:43:03 +0800 Received: (from hanjun@localhost) by hanjun-Latitude-D630.domain (8.14.4/8.14.4/Submit) id r7HCh3C8009505; Sat, 17 Aug 2013 20:43:03 +0800 From: Hanjun Guo To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, patches@linaro.org, linaro-kernel@lists.linaro.org, Hanjun Guo Subject: [PATCH 2/3] drivers / platform: Fix __init attribute location Date: Sat, 17 Aug 2013 20:42:25 +0800 Message-Id: <1376743346-9465-2-git-send-email-hanjun.guo@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1376743346-9465-1-git-send-email-hanjun.guo@linaro.org> References: <1376743346-9465-1-git-send-email-hanjun.guo@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: hanjun.guo@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.178 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: , __init belongs after the return type on functions, not before it. Signed-off-by: Hanjun Guo --- drivers/base/platform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/base/platform.c b/drivers/base/platform.c index 3c3197a..9d538cf 100644 --- a/drivers/base/platform.c +++ b/drivers/base/platform.c @@ -1054,7 +1054,7 @@ void __init early_platform_driver_register_all(char *class_str) * @epdrv: early platform driver structure * @id: id to match against */ -static __init struct platform_device * +static struct platform_device * __init early_platform_match(struct early_platform_driver *epdrv, int id) { struct platform_device *pd; @@ -1072,7 +1072,7 @@ early_platform_match(struct early_platform_driver *epdrv, int id) * @epdrv: early platform driver structure * @id: return true if id or above exists */ -static __init int early_platform_left(struct early_platform_driver *epdrv, +static int __init early_platform_left(struct early_platform_driver *epdrv, int id) { struct platform_device *pd;