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