Commit b0461e79 authored by Carlos Eduardo Aguiar's avatar Carlos Eduardo Aguiar Committed by Tony Lindgren

ARM: OMAP2: mach-omap2/pm.c build fix

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: default avatarCarlos Eduardo Aguiar <carlos.aguiar@indt.org.br>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 068b1e51
...@@ -837,7 +837,7 @@ int __init omap2_pm_init(void) ...@@ -837,7 +837,7 @@ int __init omap2_pm_init(void)
suspend_set_ops(&omap_pm_ops); suspend_set_ops(&omap_pm_ops);
pm_idle = omap2_pm_idle; 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) if (error)
printk(KERN_ERR "sysfs_create_file failed: %d\n", error); printk(KERN_ERR "sysfs_create_file failed: %d\n", error);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment