Thomas Zimmermann 6c2117
From e3ac5e8736c16306b9589f210a473aceb62347cb Mon Sep 17 00:00:00 2001
Thomas Zimmermann 6c2117
From: Rob Herring <robh@kernel.org>
Thomas Zimmermann 6c2117
Date: Wed, 29 Jun 2022 15:00:23 -0600
Thomas Zimmermann 6c2117
Subject: Revert "drivers/video/backlight/platform_lcd.c: add support for
Thomas Zimmermann 6c2117
 device tree based probe"
Thomas Zimmermann 6c2117
Git-commit: e3ac5e8736c16306b9589f210a473aceb62347cb
Thomas Zimmermann 6c2117
Patch-mainline: v6.0-rc1
Thomas Zimmermann 6c2117
References: bsc#1154048
Thomas Zimmermann 6c2117
Thomas Zimmermann 6c2117
This reverts commit 52e842432f36d5b15227d0ee0d2aa3d2bc3cc0b2.
Thomas Zimmermann 6c2117
Thomas Zimmermann 6c2117
The DT support never would have worked because there's no platform_data
Thomas Zimmermann 6c2117
providing ops. There's not any documented binding for it either.
Thomas Zimmermann 6c2117
Thomas Zimmermann 6c2117
Signed-off-by: Rob Herring <robh@kernel.org>
Thomas Zimmermann 6c2117
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Thomas Zimmermann 6c2117
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Thomas Zimmermann 6c2117
Link: https://lore.kernel.org/r/20220629210024.815761-1-robh@kernel.org
Thomas Zimmermann 6c2117
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Thomas Zimmermann 6c2117
---
Thomas Zimmermann 6c2117
 drivers/video/backlight/platform_lcd.c | 10 ----------
Thomas Zimmermann 6c2117
 1 file changed, 10 deletions(-)
Thomas Zimmermann 6c2117
Thomas Zimmermann 6c2117
diff --git a/drivers/video/backlight/platform_lcd.c b/drivers/video/backlight/platform_lcd.c
Thomas Zimmermann 6c2117
index b2bfbf070200..dc37494baf42 100644
Thomas Zimmermann 6c2117
--- a/drivers/video/backlight/platform_lcd.c
Thomas Zimmermann 6c2117
+++ b/drivers/video/backlight/platform_lcd.c
Thomas Zimmermann 6c2117
@@ -12,7 +12,6 @@
Thomas Zimmermann 6c2117
 #include <linux/fb.h>
Thomas Zimmermann 6c2117
 #include <linux/backlight.h>
Thomas Zimmermann 6c2117
 #include <linux/lcd.h>
Thomas Zimmermann 6c2117
-#include <linux/of.h>
Thomas Zimmermann 6c2117
 #include <linux/slab.h>
Thomas Zimmermann 6c2117
 
Thomas Zimmermann 6c2117
 #include <video/platform_lcd.h>
Thomas Zimmermann 6c2117
@@ -133,19 +132,10 @@ static int platform_lcd_resume(struct device *dev)
Thomas Zimmermann 6c2117
 static SIMPLE_DEV_PM_OPS(platform_lcd_pm_ops, platform_lcd_suspend,
Thomas Zimmermann 6c2117
 			platform_lcd_resume);
Thomas Zimmermann 6c2117
 
Thomas Zimmermann 6c2117
-#ifdef CONFIG_OF
Thomas Zimmermann 6c2117
-static const struct of_device_id platform_lcd_of_match[] = {
Thomas Zimmermann 6c2117
-	{ .compatible = "platform-lcd" },
Thomas Zimmermann 6c2117
-	{},
Thomas Zimmermann 6c2117
-};
Thomas Zimmermann 6c2117
-MODULE_DEVICE_TABLE(of, platform_lcd_of_match);
Thomas Zimmermann 6c2117
-#endif
Thomas Zimmermann 6c2117
-
Thomas Zimmermann 6c2117
 static struct platform_driver platform_lcd_driver = {
Thomas Zimmermann 6c2117
 	.driver		= {
Thomas Zimmermann 6c2117
 		.name	= "platform-lcd",
Thomas Zimmermann 6c2117
 		.pm	= &platform_lcd_pm_ops,
Thomas Zimmermann 6c2117
-		.of_match_table = of_match_ptr(platform_lcd_of_match),
Thomas Zimmermann 6c2117
 	},
Thomas Zimmermann 6c2117
 	.probe		= platform_lcd_probe,
Thomas Zimmermann 6c2117
 };
Thomas Zimmermann 6c2117
-- 
Thomas Zimmermann 6c2117
2.37.3
Thomas Zimmermann 6c2117