devices/8139too-2.6.33-ethercat.c
changeset 2589 2b9c78543663
parent 2060 8b67602f5161
equal deleted inserted replaced
2415:af21f0bdc7c9 2589:2b9c78543663
  1132 
  1132 
  1133 	/* Put the chip into low-power mode. */
  1133 	/* Put the chip into low-power mode. */
  1134 	if (rtl_chip_info[tp->chipset].flags & HasHltClk)
  1134 	if (rtl_chip_info[tp->chipset].flags & HasHltClk)
  1135 		RTL_W8 (HltClk, 'H');	/* 'R' would leave the clock running. */
  1135 		RTL_W8 (HltClk, 'H');	/* 'R' would leave the clock running. */
  1136 
  1136 
  1137 	if (tp->ecdev && ecdev_open(tp->ecdev)) {
  1137 	if (tp->ecdev) {
  1138 		ecdev_withdraw(tp->ecdev);
  1138 		i = ecdev_open(tp->ecdev);
  1139 		goto err_out;
  1139 		if (i) {
       
  1140 			ecdev_withdraw(tp->ecdev);
       
  1141 			goto err_out;
       
  1142 		}
  1140 	}
  1143 	}
  1141 
  1144 
  1142 	return 0;
  1145 	return 0;
  1143 
  1146 
  1144 err_out:
  1147 err_out: