bcm283x_i2c_init is called before the i2c adapter device is allocated and thus these message are prefixed with "<NULL>:". Use the hardware device instead to fix this. Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> --- Cc: Daniel Brát <danek.brat@xxxxxxxxx> --- drivers/i2c/busses/i2c-bcm283x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-bcm283x.c b/drivers/i2c/busses/i2c-bcm283x.c index fdba3b91bd4c..d9bbc17b1368 100644 --- a/drivers/i2c/busses/i2c-bcm283x.c +++ b/drivers/i2c/busses/i2c-bcm283x.c @@ -74,7 +74,7 @@ static inline struct bcm283x_i2c *to_bcm283x_i2c(struct i2c_adapter *adapter) static inline int bcm283x_i2c_init(struct bcm283x_i2c *bcm_i2c) { - struct device_d *dev = &bcm_i2c->adapter.dev; + struct device_d *dev = bcm_i2c->adapter.dev.parent; u32 mclk_rate, cdiv, redl, fedl; /* -- 2.30.2