adb.c (a9de18eb761f7c1c860964b2e5addc1a35c7e861) adb.c (71a157e8edca55198e808f8561dd49017a54ee34)
1/*
2 * Device driver for the Apple Desktop Bus
3 * and the /dev/adb device on macintoshes.
4 *
5 * Copyright (C) 1996 Paul Mackerras.
6 *
7 * Modified to declare controllers as structures, added
8 * client notification of bus reset and handles PowerBook

--- 308 unchanged lines hidden (view full) ---

317 break;
318 }
319 }
320 if ((adb_controller == NULL) || adb_controller->init()) {
321 printk(KERN_WARNING "Warning: no ADB interface detected\n");
322 adb_controller = NULL;
323 } else {
324#ifdef CONFIG_PPC
1/*
2 * Device driver for the Apple Desktop Bus
3 * and the /dev/adb device on macintoshes.
4 *
5 * Copyright (C) 1996 Paul Mackerras.
6 *
7 * Modified to declare controllers as structures, added
8 * client notification of bus reset and handles PowerBook

--- 308 unchanged lines hidden (view full) ---

317 break;
318 }
319 }
320 if ((adb_controller == NULL) || adb_controller->init()) {
321 printk(KERN_WARNING "Warning: no ADB interface detected\n");
322 adb_controller = NULL;
323 } else {
324#ifdef CONFIG_PPC
325 if (machine_is_compatible("AAPL,PowerBook1998") ||
326 machine_is_compatible("PowerBook1,1"))
325 if (of_machine_is_compatible("AAPL,PowerBook1998") ||
326 of_machine_is_compatible("PowerBook1,1"))
327 sleepy_trackpad = 1;
328#endif /* CONFIG_PPC */
329
330 adbdev_init();
331 adb_reset_bus();
332 }
333 return 0;
334}

--- 535 unchanged lines hidden ---
327 sleepy_trackpad = 1;
328#endif /* CONFIG_PPC */
329
330 adbdev_init();
331 adb_reset_bus();
332 }
333 return 0;
334}

--- 535 unchanged lines hidden ---