diff options
author | Hanjun Guo <hanjun.guo@linaro.org> | 2013-08-17 08:42:25 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-19 20:10:10 -0400 |
commit | a82579106c79484a5ea0c4c424c8860648c2e389 (patch) | |
tree | c10b7e4e17868d31ab71dd1933595a051a3191ce /drivers/base | |
parent | 3454bf96041e8c4cecc7d85b87c35056050a15b5 (diff) |
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/base')
-rw-r--r-- | drivers/base/platform.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/base/platform.c b/drivers/base/platform.c index 3c3197a8de41..9d538cf9204a 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) | |||
1054 | * @epdrv: early platform driver structure | 1054 | * @epdrv: early platform driver structure |
1055 | * @id: id to match against | 1055 | * @id: id to match against |
1056 | */ | 1056 | */ |
1057 | static __init struct platform_device * | 1057 | static struct platform_device * __init |
1058 | early_platform_match(struct early_platform_driver *epdrv, int id) | 1058 | early_platform_match(struct early_platform_driver *epdrv, int id) |
1059 | { | 1059 | { |
1060 | struct platform_device *pd; | 1060 | struct platform_device *pd; |
@@ -1072,7 +1072,7 @@ early_platform_match(struct early_platform_driver *epdrv, int id) | |||
1072 | * @epdrv: early platform driver structure | 1072 | * @epdrv: early platform driver structure |
1073 | * @id: return true if id or above exists | 1073 | * @id: return true if id or above exists |
1074 | */ | 1074 | */ |
1075 | static __init int early_platform_left(struct early_platform_driver *epdrv, | 1075 | static int __init early_platform_left(struct early_platform_driver *epdrv, |
1076 | int id) | 1076 | int id) |
1077 | { | 1077 | { |
1078 | struct platform_device *pd; | 1078 | struct platform_device *pd; |