Messages in this thread Patch in this message | | | From | Tony Lindgren <> | Subject | [PATCH 64/90] ARM: OMAP: Fix warning in pm.c | Date | Wed, 4 Apr 2007 14:05:43 -0400 |
| |
From: Dirk Behme <dirk.behme_at_gmail.com>
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 <dirk.behme_at_gmail.com> Signed-off-by: Tony Lindgren <tony@atomide.com> --- 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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |