Browse Source

Bugfix: ztex: Copy serial number to device "name" before cloning it for other processors

Luke Dashjr 12 years ago
parent
commit
cc9b91ad98
1 changed files with 1 additions and 1 deletions
  1. 1 1
      driver-ztex.c

+ 1 - 1
driver-ztex.c

@@ -69,9 +69,9 @@ static struct cgpu_info *ztex_setup(struct libztex_device *dev, int j, int fpgac
 	ztex->procs = fpgacount;
 	ztex->procs = fpgacount;
 	ztex->threads = fpgacount;
 	ztex->threads = fpgacount;
 	dev->fpgaNum = j;
 	dev->fpgaNum = j;
+	ztex->name = fpganame;
 	add_cgpu(ztex);
 	add_cgpu(ztex);
 	strcpy(ztex->device_ztex->repr, ztex->proc_repr);
 	strcpy(ztex->device_ztex->repr, ztex->proc_repr);
-	ztex->name = fpganame;
 	applog(LOG_INFO, "%"PRIpreprv": Found Ztex (ZTEX %s)", ztex->dev_repr, fpganame);
 	applog(LOG_INFO, "%"PRIpreprv": Found Ztex (ZTEX %s)", ztex->dev_repr, fpganame);
 
 
 	return ztex;
 	return ztex;