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:
Peter Bigot 2020-06-12 09:23:02 -05:00 committed by Maureen Helm
commit 78f14aa91d

View file

@ -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;