[POWERPC] PS3: Frame buffer system-bus rework
Convert the ps3fb device from a platform device to a PS3 system bus device. Fix the remove and shutdown methods to support kexec and to make ps3fb a loadable module. Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
committed by
Paul Mackerras
parent
13a5e30cf7
commit
9e6b99bd44
@@ -107,7 +107,7 @@ static void ps3_panic(char *str)
|
||||
while(1);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_FB_PS3
|
||||
#if defined(CONFIG_FB_PS3) || defined(CONFIG_FB_PS3_MODULE)
|
||||
static void prealloc(struct ps3_prealloc *p)
|
||||
{
|
||||
if (!p->size)
|
||||
@@ -125,10 +125,11 @@ static void prealloc(struct ps3_prealloc *p)
|
||||
}
|
||||
|
||||
struct ps3_prealloc ps3fb_videomemory = {
|
||||
.name = "ps3fb videomemory",
|
||||
.size = CONFIG_FB_PS3_DEFAULT_SIZE_M*1024*1024,
|
||||
.align = 1024*1024 /* the GPU requires 1 MiB alignment */
|
||||
.name = "ps3fb videomemory",
|
||||
.size = CONFIG_FB_PS3_DEFAULT_SIZE_M*1024*1024,
|
||||
.align = 1024*1024 /* the GPU requires 1 MiB alignment */
|
||||
};
|
||||
EXPORT_SYMBOL_GPL(ps3fb_videomemory);
|
||||
#define prealloc_ps3fb_videomemory() prealloc(&ps3fb_videomemory)
|
||||
|
||||
static int __init early_parse_ps3fb(char *p)
|
||||
|
Reference in New Issue
Block a user