diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2009-05-23 05:52:13 +0800 |
---|---|---|
committer | Chris Ball <cjb@t60p.laptop.org> | 2009-05-23 05:52:13 +0800 |
commit | 639e9c88e588cae55698cfb4063f625c38224afb (patch) | |
tree | 7fa7a9bc8ba949a91510eade159443b3875e656e | |
parent | 54303b269f1efe04a80177dbb62d7b94882ff45d (diff) |
Fix GPIO BAR detection with libpciaccess
This patch fixes an issue with the GPIO BAR detection. Basically,
with libpciaccess we're finding the ISA device and checking its BARs,
but we're not bothering to fill in the BAR information via
pci_device_probe. This results in a 0'd out bar and:
(EE) GEODE(0): Could not find the GPIO I/O base
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Andres Salomon <dilinger@collabora.co.uk>
Signed-off-by: Chris Ball <cjb@laptop.org>
-rw-r--r-- | src/geode_ddc.c | 3 |
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 |