i2c/i2c_quark_se_ss: fix build issue with debugging
Fixes a build issue when CONFIG_I2C_DEBUG is turned on. Change-Id: I8df72e41d0809f99c9c3855cbfcbc5abc60cbca1 Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
05ba788070
commit
0e423317e2
1 changed files with 2 additions and 1 deletions
|
@ -38,6 +38,7 @@
|
|||
#ifndef CONFIG_I2C_DEBUG
|
||||
#define DBG(...) { ; }
|
||||
#else
|
||||
#include <misc/printk.h>
|
||||
#define DBG printk
|
||||
#endif /* CONFIG_I2C_DEBUG */
|
||||
|
||||
|
@ -567,7 +568,7 @@ int i2c_qse_ss_initialize(struct device *dev)
|
|||
|
||||
if (i2c_qse_ss_runtime_configure(dev, dw->app_config.raw) != DEV_OK) {
|
||||
DBG("I2C_SS: Cannot set default configuration 0x%x\n",
|
||||
dev->app_config.raw);
|
||||
dw->app_config.raw);
|
||||
return DEV_NOT_CONFIG;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue