drivers: i2c_dw: remove inappropriate assignment of API pointer
This is set when the device is defined, and should not be modified. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
parent
3cb335d0df
commit
78f14aa91d
1 changed files with 0 additions and 1 deletions
|
@ -621,7 +621,6 @@ static int i2c_dw_initialize(struct device *dev)
|
|||
|
||||
/* verify that we have a valid DesignWare register first */
|
||||
if (regs->ic_comp_type != I2C_DW_MAGIC_KEY) {
|
||||
dev->driver_api = NULL;
|
||||
LOG_DBG("I2C: DesignWare magic key not found, check base "
|
||||
"address. Stopping initialization");
|
||||
return -EIO;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue