23 lines
796 B
Diff
23 lines
796 B
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>
|
|
|
|
--- src/mga_dac3026.c
|
|
+++ 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
|