drm/panel: p079zca: unconditionally remove the panel on

A patch from »drm/panel: p079zca: unconditionally remove the panel on« in state Mainline for linux-kernel

From: Heiko Stuebner <heiko@...> Date: Sat, 4 Aug 2018 17:29:12 +0200

Commit-Message

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@...>

Patch-Comment

drivers/gpu/drm/panel/panel-innolux-p079zca.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)

Statistics

  • 1 lines added
  • 2 lines removed

Changes

---------------- drivers/gpu/drm/panel/panel-innolux-p079zca.c -----------------
index 72edb334d997..ca4ae45dd307 100644
@@ -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)
 
 

Recent Patches

About Us

Sed lacus. Donec lectus. Nullam pretium nibh ut turpis. Nam bibendum. In nulla tortor, elementum vel, tempor at, varius non, purus. Mauris vitae nisl nec metus placerat consectetuer.

Read More...