All of lore.kernel.org
 help / color / mirror / Atom feed
* [merged] backlight-ili922x-use-devm_lcd_device_register.patch removed from -mm tree
@ 2013-11-13 20:41 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2013-11-13 20:41 UTC (permalink / raw)
  To: mm-commits, jg1.han

Subject: [merged] backlight-ili922x-use-devm_lcd_device_register.patch removed from -mm tree
To: jg1.han@samsung.com,mm-commits@vger.kernel.org
From: akpm@linux-foundation.org
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 <jg1.han@samsung.com>
Subject: backlight: ili922x: use devm_lcd_device_register()

Use devm_lcd_device_register() to make cleanup paths simpler.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/video/backlight/ili922x.c |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff -puN drivers/video/backlight/ili922x.c~backlight-ili922x-use-devm_lcd_device_register drivers/video/backlight/ili922x.c
--- a/drivers/video/backlight/ili922x.c~backlight-ili922x-use-devm_lcd_device_register
+++ a/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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-11-13 20:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-13 20:41 [merged] backlight-ili922x-use-devm_lcd_device_register.patch removed from -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.