drm/panel: ilitek-ili9881c: Clean up on mipi_dsi_attach failure
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Thu, 31 Mar 2022 11:03:36 +0000 (12:03 +0100)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Thu, 31 Mar 2022 11:11:50 +0000 (12:11 +0100)
commit2eeb3b385ff1fe03ca1b21b3d31b0a912c595505
tree4ed6ef30ec122ff62f58aebbb29a2f561c05edc1
parent94489dd114ddc63975bdbd272fd5656a8c8392fc
drm/panel: ilitek-ili9881c: Clean up on mipi_dsi_attach failure

mipi_dsi_attach is allowed to fail, and currently the probe
code doesn't clean up (mainly drm_panel_remove) if this happens.

Add cleanup code on failure.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/gpu/drm/panel/panel-ilitek-ili9881c.c