diff options
Diffstat (limited to 'drivers/macintosh/adb.c')
-rw-r--r-- | drivers/macintosh/adb.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/macintosh/adb.c b/drivers/macintosh/adb.c index 23741cec45e3..1c4ee6e77937 100644 --- a/drivers/macintosh/adb.c +++ b/drivers/macintosh/adb.c | |||
@@ -317,13 +317,15 @@ static int __init adb_init(void) | |||
317 | break; | 317 | break; |
318 | } | 318 | } |
319 | } | 319 | } |
320 | if ((adb_controller == NULL) || adb_controller->init()) { | 320 | if (adb_controller != NULL && adb_controller->init && |
321 | printk(KERN_WARNING "Warning: no ADB interface detected\n"); | 321 | adb_controller->init()) |
322 | adb_controller = NULL; | 322 | adb_controller = NULL; |
323 | if (adb_controller == NULL) { | ||
324 | printk(KERN_WARNING "Warning: no ADB interface detected\n"); | ||
323 | } else { | 325 | } else { |
324 | #ifdef CONFIG_PPC | 326 | #ifdef CONFIG_PPC |
325 | if (machine_is_compatible("AAPL,PowerBook1998") || | 327 | if (of_machine_is_compatible("AAPL,PowerBook1998") || |
326 | machine_is_compatible("PowerBook1,1")) | 328 | of_machine_is_compatible("PowerBook1,1")) |
327 | sleepy_trackpad = 1; | 329 | sleepy_trackpad = 1; |
328 | #endif /* CONFIG_PPC */ | 330 | #endif /* CONFIG_PPC */ |
329 | 331 | ||