Skip to content

Commit a825791

Browse files
hanjun-guogregkh
authored andcommitted
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>
1 parent 3454bf9 commit a825791

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/base/platform.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,7 @@ void __init early_platform_driver_register_all(char *class_str)
10541054
* @epdrv: early platform driver structure
10551055
* @id: id to match against
10561056
*/
1057-
static __init struct platform_device *
1057+
static struct platform_device * __init
10581058
early_platform_match(struct early_platform_driver *epdrv, int id)
10591059
{
10601060
struct platform_device *pd;
@@ -1072,7 +1072,7 @@ early_platform_match(struct early_platform_driver *epdrv, int id)
10721072
* @epdrv: early platform driver structure
10731073
* @id: return true if id or above exists
10741074
*/
1075-
static __init int early_platform_left(struct early_platform_driver *epdrv,
1075+
static int __init early_platform_left(struct early_platform_driver *epdrv,
10761076
int id)
10771077
{
10781078
struct platform_device *pd;

0 commit comments

Comments
 (0)