summaryrefslogtreecommitdiff
path: root/drivers/pci/pci_mvebu.c
diff options
context:
space:
mode:
authorMarek BehĂșn <marek.behun@nic.cz>2021-11-11 16:35:44 +0100
committerStefan Roese <sr@denx.de>2021-12-15 08:57:36 +0100
commite967c84a6d211562ff800a00b0c30d7aa808ae4b (patch)
tree087540b4e39f5a29b7ebe6a40218dc7576931d55 /drivers/pci/pci_mvebu.c
parentcfbd2bc695b87434e52e1b1073756b823f18f09d (diff)
downloadu-boot-e967c84a6d211562ff800a00b0c30d7aa808ae4b.tar.gz
u-boot-e967c84a6d211562ff800a00b0c30d7aa808ae4b.tar.bz2
u-boot-e967c84a6d211562ff800a00b0c30d7aa808ae4b.zip
pci: pci_mvebu, pci_aardvark: Fix size of configuration cache
Since u32 takes up 4 bytes, we need to divide the number of u32s by 4 for cfgcache. Signed-off-by: Marek BehĂșn <marek.behun@nic.cz> Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'drivers/pci/pci_mvebu.c')
-rw-r--r--drivers/pci/pci_mvebu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci_mvebu.c b/drivers/pci/pci_mvebu.c
index 14cd82db6f..2d1624deb2 100644
--- a/drivers/pci/pci_mvebu.c
+++ b/drivers/pci/pci_mvebu.c
@@ -88,7 +88,7 @@ struct mvebu_pcie {
unsigned int mem_attr;
unsigned int io_target;
unsigned int io_attr;
- u32 cfgcache[0x34 - 0x10];
+ u32 cfgcache[(0x34 - 0x10) / 4];
};
/*