Commit a82579106c79484a5ea0c4c424c8860648c2e389

Authored by Hanjun Guo
Committed by Greg Kroah-Hartman
1 parent 3454bf9604

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>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

drivers/base/platform.c
... ... @@ -1054,7 +1054,7 @@
1054 1054 * @epdrv: early platform driver structure
1055 1055 * @id: id to match against
1056 1056 */
1057   -static __init struct platform_device *
  1057 +static struct platform_device * __init
1058 1058 early_platform_match(struct early_platform_driver *epdrv, int id)
1059 1059 {
1060 1060 struct platform_device *pd;
... ... @@ -1072,7 +1072,7 @@
1072 1072 * @epdrv: early platform driver structure
1073 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 1076 int id)
1077 1077 {
1078 1078 struct platform_device *pd;