From: Dirk Behme Date: Fri, 26 Jan 2007 21:32:30 +0000 (-0800) Subject: ARM: OMAP: Fix warning in pm.c X-Git-Tag: v2.6.21-omap1~43^2~38 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c9896be0ae1a016f140838c4da0c3e8c7d1a50aa;p=linux-2.6-omap-h63xx.git 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 --- diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c index 1034eb948f6..27d7f85425b 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; }