From a5876981fe1ee67692da1f98bb92d5e95b51e6aa Mon Sep 17 00:00:00 2001 From: Daniel Leung Date: Sat, 19 Sep 2015 15:30:37 -0700 Subject: [PATCH] i2c: dw: fix compilation error This was missing an include file, which caused the macro to not be expanded correctly. Including init.h fixes the issue. Change-Id: I6b190e0c75828d9b6eb42a84c213dfc174510740 Signed-off-by: Daniel Leung --- drivers/i2c/dw_i2c.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/i2c/dw_i2c.c b/drivers/i2c/dw_i2c.c index b3e1d3c3b51..0c1d293ab62 100644 --- a/drivers/i2c/dw_i2c.c +++ b/drivers/i2c/dw_i2c.c @@ -611,6 +611,8 @@ int dw_i2c_initialize(struct device *port) /* system bindings */ #if CONFIG_DW_I2C0 +#include + void i2c_config_0_irq(struct device *port); struct dw_i2c_rom_config i2c_config_dw_0 = {