Skip to contentSkip to conversation

backlight-ili922x-use-devm_lcd_device_register.patch removed from -mm tree

merged [email protected] 1 participant 1 message Nov 13, 2013

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

Subject: [merged] backlight-ili922x-use-devm_lcd_device_register.patch removed from -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Wed, 13 Nov 2013 12:41:32 -0800

The patch titled
Subject: backlight: ili922x: use devm_lcd_device_register()
has been removed from the -mm tree. Its filename was
backlight-ili922x-use-devm_lcd_device_register.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Jingoo Han <[email protected]>
Subject: backlight: ili922x: use devm_lcd_device_register()

Use devm_lcd_device_register() to make cleanup paths simpler.

---

 drivers/video/backlight/ili922x.c |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
drivers/video/backlight/ili922x.c renamed from drivers/video/backlight/ili922x.c~backlight-ili922x-use-devm_lcd_device_register +2 -3
diff -puN drivers/video/backlight/ili922x.c~backlight-ili922x-use-devm_lcd_device_register drivers/video/backlight/ili922x.c
@@ -513,8 +513,8 @@ static int ili922x_probe(struct spi_devi
 
 	ili->power = FB_BLANK_POWERDOWN;
 
-	lcd = lcd_device_register("ili922xlcd", &spi->dev, ili,
-				  &ili922x_ops);
+	lcd = devm_lcd_device_register(&spi->dev, "ili922xlcd", &spi->dev, ili,
+					&ili922x_ops);
 	if (IS_ERR(lcd)) {
 		dev_err(&spi->dev, "cannot register LCD\n");
 		return PTR_ERR(lcd);
@@ -530,10 +530,7 @@ static int ili922x_probe(struct spi_devi
 
 static int ili922x_remove(struct spi_device *spi)
 {
-	struct ili922x *ili = spi_get_drvdata(spi);