summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/geode_ddc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/geode_ddc.c b/src/geode_ddc.c
index 2533488..086dbb1 100644
--- a/src/geode_ddc.c
+++ b/src/geode_ddc.c
@@ -72,6 +72,9 @@ geode_gpio_iobase(void)
if (pci == NULL)
return 0;
+ if (pci_device_probe(pci) != 0)
+ return 0;
+
/* The GPIO I/O address is in resource 1 */
return (unsigned short)pci->regions[1].base_addr;
#else