diff options
author | Heiko Stuebner <heiko@sntech.de> | 2018-08-16 17:09:20 +0300 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2018-09-27 15:04:00 +0300 |
commit | 882c35af565a352d3183bd4cb2f9e59414521f87 (patch) | |
tree | dd3be6bcee950f90fd5771e728607f6ae0b2c49e /drivers/gpu/drm/panel/panel-innolux-p079zca.c | |
parent | 94889b487bb9c2560226fc7dac08d28561e340b4 (diff) | |
download | linux-882c35af565a352d3183bd4cb2f9e59414521f87.tar.xz |
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
Diffstat (limited to 'drivers/gpu/drm/panel/panel-innolux-p079zca.c')
-rw-r--r-- | drivers/gpu/drm/panel/panel-innolux-p079zca.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/panel/panel-innolux-p079zca.c b/drivers/gpu/drm/panel/panel-innolux-p079zca.c index 72edb334d997..ca4ae45dd307 100644 --- a/drivers/gpu/drm/panel/panel-innolux-p079zca.c +++ b/drivers/gpu/drm/panel/panel-innolux-p079zca.c @@ -506,8 +506,7 @@ static int innolux_panel_add(struct mipi_dsi_device *dsi, static void innolux_panel_del(struct innolux_panel *innolux) { - if (innolux->base.dev) - drm_panel_remove(&innolux->base); + drm_panel_remove(&innolux->base); } static int innolux_panel_probe(struct mipi_dsi_device *dsi) |