1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-02 14:33:18 +02:00

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>
This commit is contained in:
Stefan Tauner
2014-06-01 23:49:03 +00:00
parent 72d42f87a9
commit 0ccec8f212
10 changed files with 10 additions and 7 deletions

View File

@ -59,7 +59,7 @@ int it8212_init(void)
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;