summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorHanjun Guo <hanjun.guo@linaro.org>2013-08-17 12:42:25 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-20 00:10:10 (GMT)
commita82579106c79484a5ea0c4c424c8860648c2e389 (patch)
treec10b7e4e17868d31ab71dd1933595a051a3191ce /drivers
parent3454bf96041e8c4cecc7d85b87c35056050a15b5 (diff)
downloadlinux-fsl-qoriq-a82579106c79484a5ea0c4c424c8860648c2e389.tar.xz
drivers / platform: Fix __init attribute location
__init belongs after the return type on functions, not before it. Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/base/platform.c4
1 files 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;