drivers / base: Fix sysfs_deprecated_setup() __init attribute location
authorHanjun Guo <hanjun.guo@linaro.org>
Sat, 17 Aug 2013 12:42:24 +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/core.c

index 09a99d6096449c884a34e448af3f9d6b5d287acc..af646afa5b7ebc4c97d36e193f7981f5f533ed1a 100644 (file)
@@ -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);
 }