Message ID | 20220415162513.42190-2-stefan.wahren@i2se.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | drm/panel/raspberrypi-touchscreen: Fix minor issues | expand |
On Fri, 15 Apr 2022 18:25:12 +0200, Stefan Wahren wrote: > From: Dave Stevenson <dave.stevenson@raspberrypi.com> > > If a call to rpi_touchscreen_i2c_write from rpi_touchscreen_probe > fails before mipi_dsi_device_register_full is called, then > in trying to log the error message if uses ts->dsi->dev when > it is still NULL. > > [...] Applied to drm/drm-misc (drm-misc-fixes). Thanks! Maxime
diff --git a/drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c b/drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c index 46029c5610c8..1f805eb8fdb5 100644 --- a/drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c +++ b/drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c @@ -229,7 +229,7 @@ static void rpi_touchscreen_i2c_write(struct rpi_touchscreen *ts, ret = i2c_smbus_write_byte_data(ts->i2c, reg, val); if (ret) - dev_err(&ts->dsi->dev, "I2C write failed: %d\n", ret); + dev_err(&ts->i2c->dev, "I2C write failed: %d\n", ret); } static int rpi_touchscreen_write(struct rpi_touchscreen *ts, u16 reg, u32 val)