diff --git a/src/soc/amd/common/block/smbus/smbus.c b/src/soc/amd/common/block/smbus/smbus.c index d2faf79e74..1a97e523bb 100644 --- a/src/soc/amd/common/block/smbus/smbus.c +++ b/src/soc/amd/common/block/smbus/smbus.c @@ -2,6 +2,7 @@ #include #include +#include #include #include #include @@ -18,12 +19,12 @@ static u8 controller_read8(const uintptr_t base, const u8 reg) { - return read8((void *)(base + reg)); + return read8p(base + reg); } static void controller_write8(const uintptr_t base, const u8 reg, const u8 val) { - write8((void *)(base + reg), val); + write8p(base + reg, val); } static int smbus_wait_until_ready(uintptr_t mmio)