diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2009-04-05 12:45:56 +0200 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2010-05-17 21:37:43 +0200 |
commit | fa6688e1c7e7341fb7d1ca5878a3641762e60dec (patch) | |
tree | fee19a4b0ade07bb2de1848ea75c29950599d5b0 /arch/m68k | |
parent | 0d305464aefff342c85b4db8b3d7a4345246e5a1 (diff) | |
download | kernel_samsung_espresso10-fa6688e1c7e7341fb7d1ca5878a3641762e60dec.zip kernel_samsung_espresso10-fa6688e1c7e7341fb7d1ca5878a3641762e60dec.tar.gz kernel_samsung_espresso10-fa6688e1c7e7341fb7d1ca5878a3641762e60dec.tar.bz2 |
m68k: amiga - Frame buffer platform device conversion
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68k')
-rw-r--r-- | arch/m68k/amiga/platform.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/m68k/amiga/platform.c b/arch/m68k/amiga/platform.c index 33a7669..7fa929c 100644 --- a/arch/m68k/amiga/platform.c +++ b/arch/m68k/amiga/platform.c @@ -56,3 +56,18 @@ static int __init amiga_init_bus(void) subsys_initcall(amiga_init_bus); #endif /* CONFIG_ZORRO */ + + +static int __init amiga_init_devices(void) +{ + if (!MACH_IS_AMIGA) + return -ENODEV; + + /* video hardware */ + if (AMIGAHW_PRESENT(AMI_VIDEO)) + platform_device_register_simple("amiga-video", -1, NULL, 0); + + return 0; +} + +device_initcall(amiga_init_devices); |