svn commit: r188191 - head/sys/dev/ath/ath_hal/ar5212

Sam Leffler sam at FreeBSD.org
Thu Feb 5 12:48:31 PST 2009


Author: sam
Date: Thu Feb  5 20:48:30 2009
New Revision: 188191
URL: http://svn.freebsd.org/changeset/base/188191

Log:
  replace r/w idiom with OS_REG_SET_BIT (to match other code)

Modified:
  head/sys/dev/ath/ath_hal/ar5212/ar5212_reset.c

Modified: head/sys/dev/ath/ath_hal/ar5212/ar5212_reset.c
==============================================================================
--- head/sys/dev/ath/ath_hal/ar5212/ar5212_reset.c	Thu Feb  5 20:44:06 2009	(r188190)
+++ head/sys/dev/ath/ath_hal/ar5212/ar5212_reset.c	Thu Feb  5 20:48:30 2009	(r188191)
@@ -990,9 +990,8 @@ ar5212PerCalibrationN(struct ath_hal *ah
 			if (powerMeasI && powerMeasQ)
 				break;
 			/* Do we really need this??? */
-			OS_REG_WRITE (ah,  AR_PHY_TIMING_CTRL4,
-				      OS_REG_READ(ah,  AR_PHY_TIMING_CTRL4) |
-				      AR_PHY_TIMING_CTRL4_DO_IQCAL);
+			OS_REG_SET_BIT(ah, AR_PHY_TIMING_CTRL4,
+			    AR_PHY_TIMING_CTRL4_DO_IQCAL);
 		} while (++i < IQ_CAL_TRIES);
 
 		/*


More information about the svn-src-head mailing list