ARM: OMAP2: mach-omap2/pm.c build fix
PATCH 1/1 ARM: OMAP2: mach-omap2/pm.c build fix
From: Carlos Eduardo Aguiar <[email protected]>
This patch fix the following build problem:
CC arch/arm/mach-omap2/pm.oarch/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 <[email protected]>
--- arch/arm/mach-omap2/pm.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-omap2/pm.c +1 -1
@@ -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
Tony Lindgren
maintainerQuoted 18 lines · Carlos Aguiar
From: Carlos Eduardo Aguiar <[email protected]>
This patch fix the following build problem:
CC
arch/arm/mach-omap2/pm.oarch/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 typeSigned-off-by Carlos Eduardo Aguiar <[email protected]>--- arch/arm/mach-omap2/pm.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)arch/arm/mach-omap2/pm.c +0
-0
arch/arm/mach-omap2/pm.c int __init omap2_pm_init(void) · line 842
Quoted 7 lines
arch/arm/mach-omap2/pm.c +1
-1@@ -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