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