Re: [PATCH] omap: dsi: do not WARN on detach if dsidev was never attached
From: Tony Lindgren
Date: Wed Sep 20 2023 - 01:50:21 EST
* H. Nikolaus Schaller <hns@xxxxxxxxxxxxx> [230919 13:38]:
> dsi_init_output() called by dsi_probe() may fail. In that
> case mipi_dsi_host_unregister() is called which may call
> omap_dsi_host_detach() with uninitialized dsi->dsidev
> because omap_dsi_host_attach() was never called before.
>
> This happens if the panel driver asks for an EPROBE_DEFER.
>
> So let's suppress the WARN() in this special case.
Reviewed-by: Tony Lindgren <tony@xxxxxxxxxxx>
Thanks,
Tony