From f7ace0da45d37da9482df3b0e38fe3cabbb9a1c0 Mon Sep 17 00:00:00 2001 From: Marshall Dawson Date: Wed, 27 Sep 2017 14:51:30 -0600 Subject: amd/stoneyridge: Fix pm_read16 argument size Make pm_read16() consistent with the other PM register access functions. Change-Id: Iba017b8090ed07d8684cc7f396a3e9a942b3ad95 Signed-off-by: Marshall Dawson Reviewed-on: https://review.coreboot.org/21748 Reviewed-by: Aaron Durbin Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth Reviewed-by: Marc Jones --- src/soc/amd/stoneyridge/southbridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/soc/amd/stoneyridge/southbridge.c') diff --git a/src/soc/amd/stoneyridge/southbridge.c b/src/soc/amd/stoneyridge/southbridge.c index 92a1defb94..ebda770be2 100644 --- a/src/soc/amd/stoneyridge/southbridge.c +++ b/src/soc/amd/stoneyridge/southbridge.c @@ -53,7 +53,7 @@ void pm_write16(u8 reg, u16 value) write16((void *)(PM_MMIO_BASE + reg), value); } -u16 pm_read16(u16 reg) +u16 pm_read16(u8 reg) { return read16((void *)(PM_MMIO_BASE + reg)); } -- cgit v1.2.3