diff options
author | Thomas Klausner <wiz@NetBSD.org> | 2015-02-23 13:26:14 +0100 |
---|---|---|
committer | Thomas Klausner <wiz@NetBSD.org> | 2015-09-17 07:03:51 +0200 |
commit | 72a8b5ef0bcb08d4cde7b329a13a59db35342f58 (patch) | |
tree | b53a4633560e2ae801708cedebc5d10583a8a8a5 | |
parent | f1e6c73be073c8816319104b2fde329bc286f5ec (diff) |
Use correct type in function call.
Fixes
passing argument 2 of 'pci_device_cfg_read_u32' from incompatible pointer type
pciaccess.h:153:5: note: expected '__uint32_t *' but argument is of type 'CARD32 *'
Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
Reviewed-by: Connor Behan <connor.behan@gmail.com>
-rw-r--r-- | src/mga_dac3026.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mga_dac3026.c b/src/mga_dac3026.c index 97c2c7a..bf4e668 100644 --- a/src/mga_dac3026.c +++ b/src/mga_dac3026.c @@ -852,8 +852,12 @@ MGA3026Save(ScrnInfoPtr pScrn, vgaRegPtr vgaReg, MGARegPtr mgaReg, mgaReg->DacRegs[i] = inTi3026(MGADACregs[i]); #ifdef XSERVER_LIBPCIACCESS - pci_device_cfg_read_u32(pMga->PciInfo, & mgaReg->Option, + { + uint32_t Option; + pci_device_cfg_read_u32(pMga->PciInfo, & Option, PCI_OPTION_REG); + mgaReg->Option = Option; + } #else mgaReg->Option = pciReadLong(pMga->PciTag, PCI_OPTION_REG); #endif |