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 <daniel.leung@intel.com>
This commit is contained in:
parent
e09e80d8e7
commit
a5876981fe
1 changed files with 2 additions and 0 deletions
|
@ -611,6 +611,8 @@ int dw_i2c_initialize(struct device *port)
|
||||||
|
|
||||||
/* system bindings */
|
/* system bindings */
|
||||||
#if CONFIG_DW_I2C0
|
#if CONFIG_DW_I2C0
|
||||||
|
#include <init.h>
|
||||||
|
|
||||||
void i2c_config_0_irq(struct device *port);
|
void i2c_config_0_irq(struct device *port);
|
||||||
|
|
||||||
struct dw_i2c_rom_config i2c_config_dw_0 = {
|
struct dw_i2c_rom_config i2c_config_dw_0 = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue