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>
diff --git a/it8212.c b/it8212.c
index f68121a..4d1c403 100644
--- a/it8212.c
+++ b/it8212.c
@@ -59,7 +59,7 @@
return 1;
/* Bit 0 is address decode enable, 17-31 the base address, everything else reserved/zero. */
- io_base_addr = pcidev_readbar(dev, PCI_ROM_ADDRESS) & 0xFFFFFFFE;
+ uint32_t io_base_addr = pcidev_readbar(dev, PCI_ROM_ADDRESS) & 0xFFFFFFFE;
if (!io_base_addr)
return 1;