]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP2: mach-omap2/pm.c build fix
authorCarlos Eduardo Aguiar <carlos.aguiar@indt.org.br>
Wed, 19 Mar 2008 13:29:26 +0000 (09:29 -0400)
committerTony Lindgren <tony@atomide.com>
Thu, 20 Mar 2008 12:54:32 +0000 (14:54 +0200)
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>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/pm.c

index 3a455e8cedfde9dc8e276aed799362ccd44206b4..fb77e3324fe13825ec6304786d84c58b10e740be 100644 (file)
@@ -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);