Re: [PATCH v2] drm: bridge: adv7511: Add check for mipi_dsi_driver_register
From: Sam Ravnborg
Date: Fri Jun 24 2022 - 16:33:39 EST
On Thu, Jun 02, 2022 at 06:34:01PM +0800, Jiasheng Jiang wrote:
> As mipi_dsi_driver_register could return error if fails,
> it should be better to check the return value and return error
> if fails.
> Moreover, if i2c_add_driver fails, mipi_dsi_driver_register
> should be reverted.
>
> Fixes: 1e4d58cd7f88 ("drm/bridge: adv7533: Create a MIPI DSI device")
> Signed-off-by: Jiasheng Jiang <jiasheng@xxxxxxxxxxx>
Thanks, added to drm-misc (added to drm-misc-next as this did not look
like something that required fast forward to mainline).
Sam