Skip to content

Commit

Permalink
drivers / base: Fix sysfs_deprecated_setup() __init attribute location
Browse files Browse the repository at this point in the history
__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>
  • Loading branch information
Hanjun Guo authored and Greg Kroah-Hartman committed Aug 20, 2013
1 parent c7991b0 commit 3454bf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/base/core.c
Original file line number Diff line number Diff line change
@@ -36,7 +36,7 @@ long sysfs_deprecated = 1;
#else
long sysfs_deprecated = 0;
#endif
static __init int sysfs_deprecated_setup(char *arg)
static int __init sysfs_deprecated_setup(char *arg)
{
return kstrtol(arg, 10, &sysfs_deprecated);
}

0 comments on commit 3454bf9

Please sign in to comment.