瀏覽代碼

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>
Hanjun Guo 12 年之前
父節點
當前提交
a82579106c
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      drivers/base/platform.c

+ 2 - 2
drivers/base/platform.c

@@ -1054,7 +1054,7 @@ void __init early_platform_driver_register_all(char *class_str)
  * @epdrv: early platform driver structure
  * @epdrv: early platform driver structure
  * @id: id to match against
  * @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)
 early_platform_match(struct early_platform_driver *epdrv, int id)
 {
 {
 	struct platform_device *pd;
 	struct platform_device *pd;
@@ -1072,7 +1072,7 @@ early_platform_match(struct early_platform_driver *epdrv, int id)
  * @epdrv: early platform driver structure
  * @epdrv: early platform driver structure
  * @id: return true if id or above exists
  * @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)
 				       int id)
 {
 {
 	struct platform_device *pd;
 	struct platform_device *pd;