Don't try to reinit a device that's disabled.
diff --git a/cgminer.c b/cgminer.c
index 1f3e0f8..8967930 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -7456,6 +7456,9 @@ static void *longpoll_thread(void __maybe_unused *userdata)
void reinit_device(struct cgpu_info *cgpu)
{
+ if (cgpu->deven == DEV_DISABLED)
+ return;
+
#ifdef USE_USBUTILS
/* Attempt a usb device reset if the device has gone sick */
if (cgpu->usbdev && cgpu->usbdev->handle)