]> git.ipfire.org Git - people/arne_f/kernel.git/commitdiff
drivers / platform: Fix __init attribute location
authorHanjun Guo <hanjun.guo@linaro.org>
Sat, 17 Aug 2013 12:42:25 +0000 (20:42 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Aug 2013 00:10:10 +0000 (17:10 -0700)
__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>
drivers/base/platform.c

index 3c3197a8de41699dcde5164ba7a11ffff870304f..9d538cf9204aaa355fc41e94541623431eace97b 100644 (file)
@@ -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;