From 403f63ae207cb6396183306e9434e80b75a0bc45 Mon Sep 17 00:00:00 2001 From: Kano Date: Tue, 24 Apr 2012 02:23:29 +1000 Subject: [PATCH] Icarus update to new add_cgpu() --- driver-icarus.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/driver-icarus.c b/driver-icarus.c index bcd1537c..67d4e1d7 100644 --- a/driver-icarus.c +++ b/driver-icarus.c @@ -255,10 +255,9 @@ static bool icarus_detect_one(const char *devpath) struct cgpu_info *icarus; icarus = calloc(1, sizeof(struct cgpu_info)); icarus->api = &icarus_api; - icarus->device_id = total_devices; icarus->device_path = strdup(devpath); icarus->threads = 1; - devices[total_devices++] = icarus; + add_cgpu(icarus); applog(LOG_INFO, "Found Icarus at %s, mark as %d", devpath, icarus->device_id);