diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2008-02-19 19:27:04 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-02-19 21:33:37 -0500 |
commit | 3d5d27c40fb38a51eae96a55f51b5a306ed3668d (patch) | |
tree | 11d28c833253cb3aebcf6382aa824d10a4929001 /arch | |
parent | bf2e70ac654060bcb2a06bbcb62701ba2451d79d (diff) |
[POWERPC] Fix warning in pseries/power.c
Introduced by commit 79393fc46ede43451a500a132e5de9856f5a4c83
("kobject: convert pseries/power.c to kobj_attr interface").
sys_create_file takes a "struct attrbute *" not a "struct
kobj_addribute *".
arch/powerpc/platforms/pseries/power.c: In function 'apo_pm_init':
arch/powerpc/platforms/pseries/power.c:78: warning: passing argument 2 of 'sysfs_create_file' from incompatible pointer type
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/platforms/pseries/power.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/pseries/power.c b/arch/powerpc/platforms/pseries/power.c index e95fc1594c84..6d6266236446 100644 --- a/arch/powerpc/platforms/pseries/power.c +++ b/arch/powerpc/platforms/pseries/power.c | |||
@@ -75,7 +75,7 @@ core_initcall(pm_init); | |||
75 | #else | 75 | #else |
76 | static int __init apo_pm_init(void) | 76 | static int __init apo_pm_init(void) |
77 | { | 77 | { |
78 | return (sysfs_create_file(power_kobj, &auto_poweron_attr)); | 78 | return (sysfs_create_file(power_kobj, &auto_poweron_attr.attr)); |
79 | } | 79 | } |
80 | __initcall(apo_pm_init); | 80 | __initcall(apo_pm_init); |
81 | #endif | 81 | #endif |