Browse Source

Merge commit 'a253680' into bfgminer

Luke Dashjr 11 years ago
parent
commit
bf57b07492
1 changed files with 2 additions and 2 deletions
  1. 2 2
      driver-gridseed.c

+ 2 - 2
driver-gridseed.c

@@ -86,11 +86,11 @@ bool gridseed_detect_custom(const char *path, struct device_drv *driver, struct
 		return false;
 		return false;
 	}
 	}
 	
 	
-	struct cgpu_info *device = gridseed_alloc_device(path, driver, info);
-	
 	if (serial_claim_v(path, driver))
 	if (serial_claim_v(path, driver))
 		return false;
 		return false;
 	
 	
+	struct cgpu_info *device = gridseed_alloc_device(path, driver, info);
+	
 	if (!add_cgpu(device))
 	if (!add_cgpu(device))
 		return false;
 		return false;