devices/8139too-2.6.35-ethercat.c
branchstable-1.5
changeset 2582 87e502828b3f
parent 2421 bc2d4bf9cbe5
equal deleted inserted replaced
2581:d94281cb835a 2582:87e502828b3f
  1134 
  1134 
  1135 	/* Put the chip into low-power mode. */
  1135 	/* Put the chip into low-power mode. */
  1136 	if (rtl_chip_info[tp->chipset].flags & HasHltClk)
  1136 	if (rtl_chip_info[tp->chipset].flags & HasHltClk)
  1137 		RTL_W8 (HltClk, 'H');	/* 'R' would leave the clock running. */
  1137 		RTL_W8 (HltClk, 'H');	/* 'R' would leave the clock running. */
  1138 
  1138 
  1139 	if (tp->ecdev && ecdev_open(tp->ecdev)) {
  1139 	if (tp->ecdev) {
  1140 		ecdev_withdraw(tp->ecdev);
  1140 		i = ecdev_open(tp->ecdev);
  1141 		goto err_out;
  1141 		if (i) {
       
  1142 			ecdev_withdraw(tp->ecdev);
       
  1143 			goto err_out;
       
  1144 		}
  1142 	}
  1145 	}
  1143 
  1146 
  1144 	return 0;
  1147 	return 0;
  1145 
  1148 
  1146 err_out:
  1149 err_out: