diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2024-08-23 18:07:25 +0200 |
---|---|---|
committer | Arthur Heymans <arthur@aheymans.xyz> | 2024-08-30 07:34:47 +0000 |
commit | e5742fbd97dedfd787e43333001fa72fb99f50c9 (patch) | |
tree | 6e703a93b7209b0e629558bf40750a88cf39dc42 /src/soc/cavium/cn81xx/ecam0.c | |
parent | 5e521d7e623df9dd30d2b073a838e419b3d29904 (diff) |
soc/cavium: Fix non matching types
There is no struct device *dev equivalent of this function. Clang LTO
warns about mismatching types.
Change-Id: I22c8c9b9f350c53469a5d386db211969c8a41cf0
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/84084
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/soc/cavium/cn81xx/ecam0.c')
-rw-r--r-- | src/soc/cavium/cn81xx/ecam0.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/cavium/cn81xx/ecam0.c b/src/soc/cavium/cn81xx/ecam0.c index ff3e7097ff..db5090f5df 100644 --- a/src/soc/cavium/cn81xx/ecam0.c +++ b/src/soc/cavium/cn81xx/ecam0.c @@ -181,7 +181,7 @@ static size_t ecam0_pci_enable_msix(struct device *dev, dev_path(dev)); return -1; } - bar = ecam0_get_bar_val(dev, bar_idx); + bar = ecam0_get_bar_val(pcidev_bdf(dev), bar_idx); if (!bar) { printk(BIOS_ERR, "%s: Failed to find MSI-X bar\n", dev_path(dev)); |