Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/panel: p079zca: unconditionally remove the panel on removal

There is no need to check innolux->base.dev when trying to remove
the panel, as that variable is always set directly before the panel
gets added and will still be available on panel_remove.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180816140920.5009-1-heiko@sntech.de

authored by

Heiko Stuebner and committed by
Thierry Reding
882c35af 94889b48

+1 -2
+1 -2
drivers/gpu/drm/panel/panel-innolux-p079zca.c
··· 506 506 507 507 static void innolux_panel_del(struct innolux_panel *innolux) 508 508 { 509 - if (innolux->base.dev) 510 - drm_panel_remove(&innolux->base); 509 + drm_panel_remove(&innolux->base); 511 510 } 512 511 513 512 static int innolux_panel_probe(struct mipi_dsi_device *dsi)