Commit 27430408b5145893957e8bdb0442ab736708fc2e

Con Kolivas 2014-02-28T00:27:54

Bringing each hfa device online takes a lot of work generation so only ever do one at a time.

diff --git a/driver-hashfast.c b/driver-hashfast.c
index 382ab58..256ba1d 100644
--- a/driver-hashfast.c
+++ b/driver-hashfast.c
@@ -794,15 +794,14 @@ static struct cgpu_info *hfa_detect_one(libusb_device *dev, struct usb_find_devi
 	return hashfast;
 }
 
-static void hfa_detect(bool hotplug)
+static void hfa_detect(bool __maybe_unused hotplug)
 {
 	/* Set up the CRC tables only once. */
 	if (!hfa_crc8_set)
 		hfa_init_crc8();
-	if (!hotplug)
-		usb_detect_one(&hashfast_drv, hfa_detect_one);
-	else
-		usb_detect(&hashfast_drv, hfa_detect_one);
+	/* Bringing each device online takes a massive amount of work, so only
+	 * do one at a time. */
+	usb_detect_one(&hashfast_drv, hfa_detect_one);
 }
 
 static bool hfa_get_packet(struct cgpu_info *hashfast, struct hf_header *h)