Merge git://git.kernel.org/pub/scm/linux/kernel/git/joern/logfs
[pandora-kernel.git] / drivers / macintosh / adb.c
index d840a10..1c4ee6e 100644 (file)
@@ -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") ||