diff mbox

[1/3] ACPI / dock: Fix __init attribute locations

Message ID 1376389876-11791-1-git-send-email-hanjun.guo@linaro.org
State New
Headers show

Commit Message

Hanjun Guo Aug. 13, 2013, 10:31 a.m. UTC
__init belongs after the return type on functions, not before it.

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

Comments

Rafael J. Wysocki Aug. 13, 2013, 11:32 a.m. UTC | #1
On Tuesday, August 13, 2013 06:31:13 PM Hanjun Guo wrote:
> __init belongs after the return type on functions, not before it.
> 
> Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>

All 3 patches in this series queued up for 3.12.

Thanks,
Rafael


> ---
>  drivers/acpi/dock.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c
> index 8265607..c90112c 100644
> --- a/drivers/acpi/dock.c
> +++ b/drivers/acpi/dock.c
> @@ -1055,7 +1055,7 @@ err_unregister:
>   *
>   * This is called by acpi_walk_namespace to look for dock stations and bays.
>   */
> -static __init acpi_status
> +static acpi_status __init
>  find_dock_and_bay(acpi_handle handle, u32 lvl, void *context, void **rv)
>  {
>  	if (is_dock(handle) || is_ejectable_bay(handle))
>
diff mbox

Patch

diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c
index 8265607..c90112c 100644
--- a/drivers/acpi/dock.c
+++ b/drivers/acpi/dock.c
@@ -1055,7 +1055,7 @@  err_unregister:
  *
  * This is called by acpi_walk_namespace to look for dock stations and bays.
  */
-static __init acpi_status
+static acpi_status __init
 find_dock_and_bay(acpi_handle handle, u32 lvl, void *context, void **rv)
 {
 	if (is_dock(handle) || is_ejectable_bay(handle))