static DECLARE_MUTEX(adb_probe_mutex);
static struct completion adb_probe_task_comp;
static int sleepy_trackpad;
+static int autopoll_devs;
int __adb_probe_sync;
#ifdef CONFIG_PMAC_PBOOK
static int
do_adb_reset_bus(void)
{
- int ret, nret, devs;
+ int ret, nret;
if (adb_controller == NULL)
return -ENXIO;
nret = notifier_call_chain(&adb_client_list, ADB_MSG_PRE_RESET, NULL);
if (nret & NOTIFY_STOP_MASK) {
if (adb_controller->autopoll)
- adb_controller->autopoll(devs);
+ adb_controller->autopoll(autopoll_devs);
return -EBUSY;
}
}
if (!ret) {
- devs = adb_scan_bus();
+ autopoll_devs = adb_scan_bus();
if (adb_controller->autopoll)
- adb_controller->autopoll(devs);
+ adb_controller->autopoll(autopoll_devs);
}
up(&adb_handler_sem);