summaryrefslogtreecommitdiff
path: root/src/i830_sdvo.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2007-03-13 10:21:06 -0700
committerEric Anholt <eric@anholt.net>2007-03-13 16:59:38 -0700
commit5135b3a79f9c30ebce78c84c49846bba83607fed (patch)
tree8ea1d50eda1059e9b7fc93490dc9c501500a0f2e /src/i830_sdvo.c
parent578da7ca705c5a58c0bd397b0831e2f95140f8ae (diff)
Use a POSTING_READ(reg) macro instead of using the (void)INREG(reg) pattern.
Diffstat (limited to 'src/i830_sdvo.c')
-rw-r--r--src/i830_sdvo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/i830_sdvo.c b/src/i830_sdvo.c
index 4c543db4..cd0b115a 100644
--- a/src/i830_sdvo.c
+++ b/src/i830_sdvo.c
@@ -695,14 +695,14 @@ i830_sdvo_dpms(xf86OutputPtr output, int mode)
if ((temp & SDVO_ENABLE) == 0)
{
OUTREG(dev_priv->output_device, temp | SDVO_ENABLE);
- (void)INREG(dev_priv->output_device);
+ POSTING_READ(dev_priv->output_device);
#if 0
/* Do it again! If we remove this below register write, or the exact
* same one 2 lines up, the mac mini SDVO output doesn't turn on.
*/
OUTREG(dev_priv->output_device,
INREG(dev_priv->output_device) | SDVO_ENABLE);
- (void)INREG(dev_priv->output_device);
+ POSTING_READ(dev_priv->output_device);
#endif
}
for (i = 0; i < 2; i++)