summaryrefslogtreecommitdiff
path: root/src/mainboard/via
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/via')
-rw-r--r--src/mainboard/via/epia/auto.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mainboard/via/epia/auto.c b/src/mainboard/via/epia/auto.c
index fe999b0608..c11f57297f 100644
--- a/src/mainboard/via/epia/auto.c
+++ b/src/mainboard/via/epia/auto.c
@@ -40,7 +40,9 @@ static void memreset(int controllers, const struct mem_controller *ctrl)
*/
static inline int spd_read_byte(unsigned device, unsigned address)
{
- return smbus_read_byte(device, address);
+ unsigned char c;
+ c = smbus_read_byte(device, address);
+ return c;
}