Skip to content
Commit c6210216 authored by Marek Vasut's avatar Marek Vasut Committed by Linus Walleij
Browse files

drm/panel/panel-sitronix-st7701: Remove panel on DSI attach failure



In case mipi_dsi_attach() fails, call drm_panel_remove() to
avoid memory leak.

Fixes: 849b2e3f ("drm/panel: Add Sitronix ST7701 panel driver")
Signed-off-by: default avatarMarek Vasut <marex@denx.de>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20221014231106.468063-1-marex@denx.de
parent 49ee766b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment