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