summaryrefslogtreecommitdiff
path: root/tests/tco-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tco-test.c')
-rw-r--r--tests/tco-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tco-test.c b/tests/tco-test.c
index 0d201b1fcb..129577d1c0 100644
--- a/tests/tco-test.c
+++ b/tests/tco-test.c
@@ -70,7 +70,7 @@ static void test_init(TestData *d)
/* set Root Complex BAR */
qpci_config_writel(d->dev, ICH9_LPC_RCBA, RCBA_BASE_ADDR | 0x1);
- d->tco_io_base = (void *)((uintptr_t)PM_IO_BASE_ADDR + 0x60);
+ d->tco_io_base = qpci_legacy_iomap(d->dev, PM_IO_BASE_ADDR + 0x60);
}
static void stop_tco(const TestData *d)