public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] ARM: OMAP2: mach-omap2/pm.c build fix
@ 2008-03-19 13:29 Carlos Aguiar
  2008-03-20 12:54 ` Tony Lindgren
  0 siblings, 1 reply; 2+ messages in thread
From: Carlos Aguiar @ 2008-03-19 13:29 UTC (permalink / raw)
  To: linux-omap, Tony Lindgren

From: Carlos Eduardo Aguiar <carlos.aguiar@indt.org.br>

This patch fix the following build problem:

  CC      arch/arm/mach-omap2/pm.o
arch/arm/mach-omap2/pm.c: In function 'omap2_pm_init':
arch/arm/mach-omap2/pm.c:840: warning: passing argument 2 of 'sysfs_create_file' from incompatible pointer type

Signed-off-by: Carlos Eduardo Aguiar <carlos.aguiar@indt.org.br>
---
 arch/arm/mach-omap2/pm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c
index 3a455e8..fb77e33 100644
--- a/arch/arm/mach-omap2/pm.c
+++ b/arch/arm/mach-omap2/pm.c
@@ -837,7 +837,7 @@ int __init omap2_pm_init(void)
 	suspend_set_ops(&omap_pm_ops);
 	pm_idle = omap2_pm_idle;
 
-	error = sysfs_create_file(power_kobj, &sleep_while_idle_attr);
+	error = sysfs_create_file(power_kobj, &sleep_while_idle_attr.attr);
 	if (error)
 		printk(KERN_ERR "sysfs_create_file failed: %d\n", error);
 
-- 1.5.3.GIT


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/1] ARM: OMAP2: mach-omap2/pm.c build fix
  2008-03-19 13:29 [PATCH 1/1] ARM: OMAP2: mach-omap2/pm.c build fix Carlos Aguiar
@ 2008-03-20 12:54 ` Tony Lindgren
  0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2008-03-20 12:54 UTC (permalink / raw)
  To: Carlos Aguiar; +Cc: linux-omap

* Carlos Aguiar <carlos.aguiar@indt.org.br> [080319 15:34]:
> From: Carlos Eduardo Aguiar <carlos.aguiar@indt.org.br>
> 
> This patch fix the following build problem:
> 
>   CC      arch/arm/mach-omap2/pm.o
> arch/arm/mach-omap2/pm.c: In function 'omap2_pm_init':
> arch/arm/mach-omap2/pm.c:840: warning: passing argument 2 of 'sysfs_create_file' from incompatible pointer type
> 
> Signed-off-by: Carlos Eduardo Aguiar <carlos.aguiar@indt.org.br>
> ---
>  arch/arm/mach-omap2/pm.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c
> index 3a455e8..fb77e33 100644
> --- a/arch/arm/mach-omap2/pm.c
> +++ b/arch/arm/mach-omap2/pm.c
> @@ -837,7 +837,7 @@ int __init omap2_pm_init(void)
>  	suspend_set_ops(&omap_pm_ops);
>  	pm_idle = omap2_pm_idle;
>  
> -	error = sysfs_create_file(power_kobj, &sleep_while_idle_attr);
> +	error = sysfs_create_file(power_kobj, &sleep_while_idle_attr.attr);
>  	if (error)
>  		printk(KERN_ERR "sysfs_create_file failed: %d\n", error);

Pushing today.

Tony

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-03-20 12:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-19 13:29 [PATCH 1/1] ARM: OMAP2: mach-omap2/pm.c build fix Carlos Aguiar
2008-03-20 12:54 ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox