summaryrefslogtreecommitdiffstats
path: root/ogp_spi.c
diff options
context:
space:
mode:
authorStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2014-06-01 23:49:03 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2014-06-01 23:49:03 +0000
commit0ccec8f21228fab9e5e57c9392f6feafbf296ef1 (patch)
treeacd2e0d426a3ec0b7829df72f6a0cbb8a9c232e2 /ogp_spi.c
parent72d42f87a9a01a1d27fba593ce4569331e079cbe (diff)
downloadflashrom-0ccec8f21228fab9e5e57c9392f6feafbf296ef1.tar.gz
flashrom-0ccec8f21228fab9e5e57c9392f6feafbf296ef1.tar.bz2
flashrom-0ccec8f21228fab9e5e57c9392f6feafbf296ef1.zip
Move global io_base_addr into compilation units
Corresponding to flashrom svn r1813. Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'ogp_spi.c')
-rw-r--r--ogp_spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ogp_spi.c b/ogp_spi.c
index 23431d140..a624dfd26 100644
--- a/ogp_spi.c
+++ b/ogp_spi.c
@@ -132,7 +132,7 @@ int ogp_spi_init(void)
if (!dev)
return 1;
- io_base_addr = pcidev_readbar(dev, PCI_BASE_ADDRESS_0);
+ uint32_t io_base_addr = pcidev_readbar(dev, PCI_BASE_ADDRESS_0);
if (!io_base_addr)
return 1;