diff options
Diffstat (limited to 'drivers/macintosh/adb.c')
-rw-r--r-- | drivers/macintosh/adb.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/macintosh/adb.c b/drivers/macintosh/adb.c index d840a109f833..1c4ee6e77937 100644 --- a/drivers/macintosh/adb.c +++ b/drivers/macintosh/adb.c | |||
@@ -317,9 +317,11 @@ 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 (of_machine_is_compatible("AAPL,PowerBook1998") || | 327 | if (of_machine_is_compatible("AAPL,PowerBook1998") || |