Re: [PATCH 64/90] ARM: OMAP: Fix warning in pm.c

Tony Lindgren
2007-04-05T15:19:48Z

[-- Attachment #1: Type: text/plain, Size: 480 bytes --]

* Tony Lindgren <tony@atomide.com> [070404 14:12]:
> 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>

Fixed email address on this one too.

Tony

[-- Attachment #2: 0064-ARM-OMAP-Fix-warning-in-pm.c.txt --]
[-- Type: text/plain, Size: 1102 bytes --]

>From cbb4d20b1d564259e705919aa1431f8f92895c1e Mon Sep 17 00:00:00 2001
From: Dirk Behme <dirk.behme@gmail.com>
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 <dirk.behme@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