Skip to contentSkip to conversation

drivers-video-backlight-tosa_lcdc-remove-redundant-spi_set_drvdata.patch removed from -mm tree

merged [email protected] 1 participant 1 message Sep 30, 2013

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

Subject: [merged] drivers-video-backlight-tosa_lcdc-remove-redundant-spi_set_drvdata.patch removed from -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Mon, 30 Sep 2013 11:57:38 -0700

The patch titled
Subject: drivers/video/backlight/tosa_lcd.c: remove redundant spi_set_drvdata
has been removed from the -mm tree. Its filename was
drivers-video-backlight-tosa_lcdc-remove-redundant-spi_set_drvdata.patch

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

------------------------------------------------------
From: Sachin Kamat <[email protected]>
Subject: drivers/video/backlight/tosa_lcd.c: remove redundant spi_set_drvdata

Driver core sets driver data to NULL upon failure or remove.

---

 drivers/video/backlight/tosa_lcd.c |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/video/backlight/tosa_lcd.c renamed from drivers/video/backlight/tosa_lcd.c~drivers-video-backlight-tosa_lcdc-remove-redundant-spi_set_drvdata +1 -4
diff -puN drivers/video/backlight/tosa_lcd.c~drivers-video-backlight-tosa_lcdc-remove-redundant-spi_set_drvdata drivers/video/backlight/tosa_lcd.c
@@ -198,7 +198,7 @@ static int tosa_lcd_probe(struct spi_dev
 	ret = devm_gpio_request_one(&spi->dev, TOSA_GPIO_TG_ON,
 				GPIOF_OUT_INIT_LOW, "tg #pwr");
 	if (ret < 0)
-		goto err_gpio_tg;
+		return ret;
 
 	mdelay(60);
 
@@ -219,8 +219,6 @@ static int tosa_lcd_probe(struct spi_dev
 
 err_register:
 	tosa_lcd_tg_off(data);
-err_gpio_tg:
-	spi_set_drvdata(spi, NULL);
 	return ret;
 }
 
@@ -235,8 +233,6 @@ static int tosa_lcd_remove(struct spi_de
 
 	tosa_lcd_tg_off(data);
 
-	spi_set_drvdata(spi, NULL);