devices/8139too-3.4-ethercat.c
branchstable-1.5
changeset 2582 87e502828b3f
parent 2490 6ad972f38438
equal deleted inserted replaced
2581:d94281cb835a 2582:87e502828b3f
  1180 
  1180 
  1181 	/* Put the chip into low-power mode. */
  1181 	/* Put the chip into low-power mode. */
  1182 	if (rtl_chip_info[tp->chipset].flags & HasHltClk)
  1182 	if (rtl_chip_info[tp->chipset].flags & HasHltClk)
  1183 		RTL_W8 (HltClk, 'H');	/* 'R' would leave the clock running. */
  1183 		RTL_W8 (HltClk, 'H');	/* 'R' would leave the clock running. */
  1184 
  1184 
  1185 	if (tp->ecdev && ecdev_open(tp->ecdev)) {
  1185 	if (tp->ecdev) {
  1186 		ecdev_withdraw(tp->ecdev);
  1186 		i = ecdev_open(tp->ecdev);
  1187 		goto err_out;
  1187 		if (i) {
       
  1188 			ecdev_withdraw(tp->ecdev);
       
  1189 			goto err_out;
       
  1190 		}
  1188 	}
  1191 	}
  1189 
  1192 
  1190 	return 0;
  1193 	return 0;
  1191 
  1194 
  1192 err_out:
  1195 err_out: