diff mbox

[1/3] drivers / base: Fix sysfs_deprecated_setup() __init attribute location

Message ID 1376743346-9465-1-git-send-email-hanjun.guo@linaro.org
State Accepted
Commit 3454bf96041e8c4cecc7d85b87c35056050a15b5
Headers show

Commit Message

Hanjun Guo Aug. 17, 2013, 12:42 p.m. UTC
__init belongs after the return type on functions, not before it.

Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
---
 drivers/base/core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Hanjun Guo Aug. 19, 2013, 1 p.m. UTC | #1
Hi Greg,

I sent [PATCH 3/3] twice because of my bad email client,
sorry for the noise, please ignore the duplicated [PATCH 3/3].

Thanks
Hanjun

On 2013-8-17 20:42, Hanjun Guo wrote:
> __init belongs after the return type on functions, not before it.
> 
> Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
> ---
>  drivers/base/core.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/base/core.c b/drivers/base/core.c
> index 8856d74..b9ccc5d 100644
> --- a/drivers/base/core.c
> +++ b/drivers/base/core.c
> @@ -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 strict_strtol(arg, 10, &sysfs_deprecated);
>  }
>
diff mbox

Patch

diff --git a/drivers/base/core.c b/drivers/base/core.c
index 8856d74..b9ccc5d 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -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 strict_strtol(arg, 10, &sysfs_deprecated);
 }