devices/8139too-3.6-ethercat.c
branchstable-1.5
changeset 2582 87e502828b3f
parent 2544 50bc6389f2f5
equal deleted inserted replaced
2581:d94281cb835a 2582:87e502828b3f
  1154 
  1154 
  1155 	/* Put the chip into low-power mode. */
  1155 	/* Put the chip into low-power mode. */
  1156 	if (rtl_chip_info[tp->chipset].flags & HasHltClk)
  1156 	if (rtl_chip_info[tp->chipset].flags & HasHltClk)
  1157 		RTL_W8 (HltClk, 'H');	/* 'R' would leave the clock running. */
  1157 		RTL_W8 (HltClk, 'H');	/* 'R' would leave the clock running. */
  1158 
  1158 
  1159 	if (tp->ecdev && ecdev_open(tp->ecdev)) {
  1159 	if (tp->ecdev) {
  1160 		ecdev_withdraw(tp->ecdev);
  1160 		i = ecdev_open(tp->ecdev);
  1161 		goto err_out;
  1161 		if (i) {
       
  1162 			ecdev_withdraw(tp->ecdev);
       
  1163 			goto err_out;
       
  1164 		}
  1162 	}
  1165 	}
  1163 
  1166 
  1164 	return 0;
  1167 	return 0;
  1165 
  1168 
  1166 err_out:
  1169 err_out: