summaryrefslogtreecommitdiffstats
path: root/apps/pio_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/pio_test.c')
-rw-r--r--apps/pio_test.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/pio_test.c b/apps/pio_test.c
index f211bf1..f2b73f7 100644
--- a/apps/pio_test.c
+++ b/apps/pio_test.c
@@ -60,7 +60,7 @@ int main(int argc, char *argv[]) {
exit(1);
}
- bar = pcilib_map_bar(pci, BAR);
+ bar = pcilib_resolve_bar_address(pci, BAR, 0);
if (!bar) {
pcilib_close(pci);
printf("map bar\n");
@@ -92,6 +92,5 @@ int main(int argc, char *argv[]) {
}
- pcilib_unmap_bar(pci, BAR, bar);
pcilib_close(pci);
}