aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/macintosh/adb.c
diff options
context:
space:
mode:
authorFinn Thain <fthain@telegraphics.com.au>2009-11-17 20:03:05 +1100
committerGeert Uytterhoeven <geert@linux-m68k.org>2010-02-27 18:31:13 +0100
commit18814ee846357509ceb13d4351eec71acd007480 (patch)
tree3bd2b2d80de7c63bf68d68d7f4c2d9c0512e23a3 /drivers/macintosh/adb.c
parent11e8faca2e501c25d2f98c1b9534776a9a9704c5 (diff)
downloadkernel_samsung_espresso10-18814ee846357509ceb13d4351eec71acd007480.zip
kernel_samsung_espresso10-18814ee846357509ceb13d4351eec71acd007480.tar.gz
kernel_samsung_espresso10-18814ee846357509ceb13d4351eec71acd007480.tar.bz2
mac68k: start CUDA early
The valkyriefb driver needs the CUDA to work in order to set the video mode at boot. So initialise the device earlier, and bring the m68k code closer to the powermac code. Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'drivers/macintosh/adb.c')
-rw-r--r--drivers/macintosh/adb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/macintosh/adb.c b/drivers/macintosh/adb.c
index d840a10..1c4ee6e 100644
--- a/drivers/macintosh/adb.c
+++ b/drivers/macintosh/adb.c
@@ -317,9 +317,11 @@ static int __init adb_init(void)
break;
}
}
- if ((adb_controller == NULL) || adb_controller->init()) {
- printk(KERN_WARNING "Warning: no ADB interface detected\n");
+ if (adb_controller != NULL && adb_controller->init &&
+ adb_controller->init())
adb_controller = NULL;
+ if (adb_controller == NULL) {
+ printk(KERN_WARNING "Warning: no ADB interface detected\n");
} else {
#ifdef CONFIG_PPC
if (of_machine_is_compatible("AAPL,PowerBook1998") ||