mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-16 23:07:00 +00:00
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>
This commit is contained in:
parent
cfbd2bc695
commit
e967c84a6d
2 changed files with 2 additions and 2 deletions
|
@ -202,7 +202,7 @@ struct pcie_advk {
|
|||
int sec_busno;
|
||||
struct udevice *dev;
|
||||
struct gpio_desc reset_gpio;
|
||||
u32 cfgcache[0x34 - 0x10];
|
||||
u32 cfgcache[(0x34 - 0x10) / 4];
|
||||
bool cfgcrssve;
|
||||
};
|
||||
|
||||
|
|
|
@ -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];
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue