From 3292d149a5cc7766797b3b947316696f10d7acb3 Mon Sep 17 00:00:00 2001 From: MilhouseVH Date: Mon, 13 Jan 2020 16:13:08 +0000 Subject: [PATCH] linux (Allwinner): fix patch --- .../linux/0002-backport-from-5.6.patch | 37 ------------------- 1 file changed, 37 deletions(-) diff --git a/projects/Allwinner/patches/linux/0002-backport-from-5.6.patch b/projects/Allwinner/patches/linux/0002-backport-from-5.6.patch index 67ce770326..073c8424b3 100644 --- a/projects/Allwinner/patches/linux/0002-backport-from-5.6.patch +++ b/projects/Allwinner/patches/linux/0002-backport-from-5.6.patch @@ -1502,43 +1502,6 @@ index a5757b11b730..5ae67d526b1d 100644 -- 2.24.1 -From 57177d214ee0816c4436c23d6c933ccb32c571f1 Mon Sep 17 00:00:00 2001 -From: Stefan Mavrodiev -Date: Tue, 17 Dec 2019 14:46:32 +0200 -Subject: [PATCH] drm/sun4i: hdmi: Remove duplicate cleanup calls - -When the HDMI unbinds drm_connector_cleanup() and drm_encoder_cleanup() -are called. This also happens when the connector and the encoder are -destroyed. This double call triggers a NULL pointer exception. - -The patch fixes this by removing the cleanup calls in the unbind -function. - -Cc: -Fixes: 9c5681011a0c ("drm/sun4i: Add HDMI support") -Signed-off-by: Stefan Mavrodiev -Signed-off-by: Maxime Ripard -Link: https://patchwork.freedesktop.org/patch/msgid/20191217124632.20820-1-stefan@olimex.com ---- - drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c | 2 -- - 1 file changed, 2 deletions(-) - -diff --git a/drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c b/drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c -index a7c4654445c7..68d4644ac2dc 100644 ---- a/drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c -+++ b/drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c -@@ -685,8 +685,6 @@ static void sun4i_hdmi_unbind(struct device *dev, struct device *master, - struct sun4i_hdmi *hdmi = dev_get_drvdata(dev); - - cec_unregister_adapter(hdmi->cec_adap); -- drm_connector_cleanup(&hdmi->connector); -- drm_encoder_cleanup(&hdmi->encoder); - i2c_del_adapter(hdmi->i2c); - i2c_put_adapter(hdmi->ddc_i2c); - clk_disable_unprepare(hdmi->mod_clk); --- -2.24.1 - From a7fe985633f927401037d2905df2c9701dff09a1 Mon Sep 17 00:00:00 2001 From: Jernej Skrabec Date: Sun, 24 Nov 2019 18:29:03 +0100