Skip to contentSkip to conversation

drm/panel: newvision-nv3052c: Fix build

PATCH In review Paul Cercueil 3 participants 3 messages Apr 9, 2022 – Apr 18, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/panel: newvision-nv3052c: Fix build

The driver was compile-tested then rebased on drm-misc-next, and not compile-tested after the rebase; unfortunately the driver didn't compile anymore when it hit drm-misc-next.

Fixes 49956b505c53 ("drm/panel: Add panel driver for NewVision NV3052C based LCDs")
Cc Christophe Branchereau <[email protected]>
Cc kbuild-all <[email protected]>
Cc Stephen Rothwell <[email protected]>
---
 drivers/gpu/drm/panel/panel-newvision-nv3052c.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/gpu/drm/panel/panel-newvision-nv3052c.c +1 -3
index 127bcfdb59df..cf078f0d3cd3 100644
@@ -416,15 +416,13 @@ static int nv3052c_probe(struct spi_device *spi)
 	return 0;
 }
 
-static int nv3052c_remove(struct spi_device *spi)
+static void nv3052c_remove(struct spi_device *spi)
 {
 	struct nv3052c *priv = spi_get_drvdata(spi);
 
 	drm_panel_remove(&priv->panel);
 	drm_panel_disable(&priv->panel);
 	drm_panel_unprepare(&priv->panel);
-
-	return 0;
 }
 
 static const struct drm_display_mode ltk035c5444t_modes[] = {
Signature · 1 line
2.35.1
Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines · Paul Cercueil

The driver was compile-tested then rebased on drm-misc-next, and not compile-tested after the rebase; unfortunately the driver didn't compile anymore when it hit drm-misc-next.

Fixes 49956b505c53 ("drm/panel: Add panel driver for NewVision NV3052C based LCDs")
Cc Christophe Branchereau <[email protected]>
Cc kbuild-all <[email protected]>
Cc Stephen Rothwell <[email protected]>
Quoted 27 lines
---
 drivers/gpu/drm/panel/panel-newvision-nv3052c.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/gpu/drm/panel/panel-newvision-nv3052c.c +1 -3
index 127bcfdb59df..cf078f0d3cd3 100644
@@ -416,15 +416,13 @@ static int nv3052c_probe(struct spi_device *spi)
 	return 0;
 }
 
-static int nv3052c_remove(struct spi_device *spi)
+static void nv3052c_remove(struct spi_device *spi)
 {
 	struct nv3052c *priv = spi_get_drvdata(spi);
 
 	drm_panel_remove(&priv->panel);
 	drm_panel_disable(&priv->panel);
 	drm_panel_unprepare(&priv->panel);
-
-	return 0;
 }
 
 static const struct drm_display_mode ltk035c5444t_modes[] = {
Signature · 1 line
2.35.1
maintainer
#2 lore raw
Quoted 6 lines · Sam Ravnborg
Quoted 4 lines · Paul Cercueil

The driver was compile-tested then rebased on drm-misc-next, and not compile-tested after the rebase; unfortunately the driver didn't compile anymore when it hit drm-misc-next.

Quoted 8 lines
Quoted 6 lines
Fixes 49956b505c53 ("drm/panel: Add panel driver for NewVision NV3052C based LCDs")
Cc Christophe Branchereau <[email protected]>
Cc kbuild-all <[email protected]>
Cc Stephen Rothwell <[email protected]>
Quoted 1 line

---

Backmerge drm-next. I fixed this up when I merged this driver in the merge commit.

Dave.