devices/8139too-2.6.18-ethercat.c
branchstable-1.5
changeset 2582 87e502828b3f
parent 2421 bc2d4bf9cbe5
equal deleted inserted replaced
2581:d94281cb835a 2582:87e502828b3f
  1148 
  1148 
  1149 	/* Put the chip into low-power mode. */
  1149 	/* Put the chip into low-power mode. */
  1150 	if (rtl_chip_info[tp->chipset].flags & HasHltClk)
  1150 	if (rtl_chip_info[tp->chipset].flags & HasHltClk)
  1151 		RTL_W8 (HltClk, 'H');	/* 'R' would leave the clock running. */
  1151 		RTL_W8 (HltClk, 'H');	/* 'R' would leave the clock running. */
  1152 
  1152 
  1153 	if (tp->ecdev && ecdev_open(tp->ecdev)) {
  1153 	if (tp->ecdev) {
  1154 		ecdev_withdraw(tp->ecdev);
  1154 		i = ecdev_open(tp->ecdev);
  1155 		goto err_out;
  1155 		if (i) {
       
  1156 			ecdev_withdraw(tp->ecdev);
       
  1157 			goto err_out;
       
  1158 		}
  1156 	}
  1159 	}
  1157 
  1160 
  1158 	return 0;
  1161 	return 0;
  1159 
  1162 
  1160 err_out:
  1163 err_out: