>From cbb4d20b1d564259e705919aa1431f8f92895c1e Mon Sep 17 00:00:00 2001 From: Dirk Behme Date: Fri, 26 Jan 2007 13:32:30 -0800 Subject: [PATCH 64/90] ARM: OMAP: Fix warning in pm.c ARM: OMAP2: Fix warning in pm.c: arch/arm/mach-omap2/pm.c: In function 'omap2_pm_init': arch/arm/mach-omap2/pm.c:854: warning: ignoring return value of 'subsys_create_file', declared with attribute warn_unused_result Signed-off-by: Dirk Behme Signed-off-by: Tony Lindgren --- arch/arm/mach-omap2/pm.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c index 1034eb9..27d7f85 100644 --- a/arch/arm/mach-omap2/pm.c +++ b/arch/arm/mach-omap2/pm.c @@ -851,7 +851,9 @@ int __init omap2_pm_init(void) pm_set_ops(&omap_pm_ops); pm_idle = omap2_pm_idle; - subsys_create_file(&power_subsys, &sleep_while_idle_attr); + l = subsys_create_file(&power_subsys, &sleep_while_idle_attr); + if (l) + printk(KERN_ERR "subsys_create_file failed: %d\n", l); return 0; } -- 1.4.4.2