Revert "Only start one hfa device at startup, leaving the rest to hotplug." This reverts commit 13c199c5ab39b4a03f087d5a4e412d61bd97c6c0.
diff --git a/driver-hashfast.c b/driver-hashfast.c
index 68032d0..033ed97 100644
--- a/driver-hashfast.c
+++ b/driver-hashfast.c
@@ -831,16 +831,12 @@ static struct cgpu_info *hfa_detect_one(libusb_device *dev, struct usb_find_devi
return hashfast;
}
-/* As slow init can make subsequent inits fail, only initialise one device
- * to start with, leaving the rest to hotplug. */
-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) {
+ if (!hfa_crc8_set)
hfa_init_crc8();
- usb_detect(&hashfast_drv, hfa_detect_one);
- } else if (hotplug)
- usb_detect(&hashfast_drv, hfa_detect_one);
+ usb_detect(&hashfast_drv, hfa_detect_one);
}
static bool hfa_get_packet(struct cgpu_info *hashfast, struct hf_header *h)