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/common | |
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/common')
-rw-r--r-- | src/soc/cavium/common/include/soc/ecam.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/soc/cavium/common/include/soc/ecam.h b/src/soc/cavium/common/include/soc/ecam.h index b0f10dc32e..534c165d73 100644 --- a/src/soc/cavium/common/include/soc/ecam.h +++ b/src/soc/cavium/common/include/soc/ecam.h @@ -3,14 +3,8 @@ #ifndef __COREBOOT_SRC_SOC_CAVIUM_COMMON_INCLUDE_SOC_ECAM_H #define __COREBOOT_SRC_SOC_CAVIUM_COMMON_INCLUDE_SOC_ECAM_H -#ifdef __SIMPLE_DEVICE__ #include <device/pci_type.h> uint64_t ecam0_get_bar_val(pci_devfn_t dev, u8 bar); -#else -#include <device/device.h> - -uint64_t ecam0_get_bar_val(struct device *dev, u8 bar); -#endif #endif |