summaryrefslogtreecommitdiff
path: root/util/inteltool/gfx.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/inteltool/gfx.c')
-rw-r--r--util/inteltool/gfx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/inteltool/gfx.c b/util/inteltool/gfx.c
index ffcf75c859..083e6c397d 100644
--- a/util/inteltool/gfx.c
+++ b/util/inteltool/gfx.c
@@ -39,8 +39,8 @@ int print_gfx(struct pci_dev *gfx)
exit(1);
}
for (i = 0; i < MMIO_SIZE; i += 4) {
- if (*(uint32_t *)(mmio + i))
- printf("0x%06x: 0x%08x\n", i, *(uint32_t *)(mmio + i));
+ if (read32(mmio + i))
+ printf("0x%06x: 0x%08x\n", i, read32(mmio + i));
}
unmap_physical((void *)mmio, MMIO_SIZE);
return 0;