diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-05-11 01:42:44 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-05-11 21:32:47 -0400 |
commit | 435e0b2b165bcac86eeddf675383070f60587cbb (patch) | |
tree | 1bea3d9ae218d74697d2374b915ac491e4e1cdaf /arch/powerpc/platforms/ps3/setup.c | |
parent | bff8dde8fb0ee9429837051b6054d770755d6e7f (diff) |
[POWERPC] Trivial ps3 warning fixes
Fixes warnings:
arch/powerpc/platforms/ps3/system-bus.c: In function 'ps3_map_sg':
arch/powerpc/platforms/ps3/system-bus.c:278: warning: unused variable 'i'
arch/powerpc/platforms/ps3/system-bus.c:277: warning: unused variable 'dev'
arch/powerpc/platforms/ps3/setup.c:103: warning: 'prealloc' defined but not used
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/ps3/setup.c')
-rw-r--r-- | arch/powerpc/platforms/ps3/setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/ps3/setup.c b/arch/powerpc/platforms/ps3/setup.c index c9894933084f..935396766621 100644 --- a/arch/powerpc/platforms/ps3/setup.c +++ b/arch/powerpc/platforms/ps3/setup.c | |||
@@ -99,6 +99,7 @@ static void ps3_panic(char *str) | |||
99 | while(1); | 99 | while(1); |
100 | } | 100 | } |
101 | 101 | ||
102 | #ifdef CONFIG_FB_PS3 | ||
102 | static void prealloc(struct ps3_prealloc *p) | 103 | static void prealloc(struct ps3_prealloc *p) |
103 | { | 104 | { |
104 | if (!p->size) | 105 | if (!p->size) |
@@ -115,7 +116,6 @@ static void prealloc(struct ps3_prealloc *p) | |||
115 | p->address); | 116 | p->address); |
116 | } | 117 | } |
117 | 118 | ||
118 | #ifdef CONFIG_FB_PS3 | ||
119 | struct ps3_prealloc ps3fb_videomemory = { | 119 | struct ps3_prealloc ps3fb_videomemory = { |
120 | .name = "ps3fb videomemory", | 120 | .name = "ps3fb videomemory", |
121 | .size = CONFIG_FB_PS3_DEFAULT_SIZE_M*1024*1024, | 121 | .size = CONFIG_FB_PS3_DEFAULT_SIZE_M*1024*1024, |