Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 319917
b: refs/heads/master
c: 402ff9a
h: refs/heads/master
i:
  319915: 72d4b75
v: v3
  • Loading branch information
Jingoo Han authored and Linus Torvalds committed Jul 31, 2012
1 parent 5c44197 commit 9becd57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f673934c615987abe16919ede8fcd3ff6805d0d6
refs/heads/master: 402ff9a26427c2c8fa5424c24ba04a7f6ecc25f1
7 changes: 2 additions & 5 deletions trunk/drivers/video/backlight/tosa_lcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,15 +193,15 @@ static int __devinit tosa_lcd_probe(struct spi_device *spi)
data->spi = spi;
dev_set_drvdata(&spi->dev, data);

ret = gpio_request(TOSA_GPIO_TG_ON, "tg #pwr");
ret = devm_gpio_request(&spi->dev, TOSA_GPIO_TG_ON, "tg #pwr");
if (ret < 0)
goto err_gpio_tg;

mdelay(60);

ret = gpio_direction_output(TOSA_GPIO_TG_ON, 0);
if (ret < 0)
goto err_gpio_dir;
goto err_gpio_tg;

mdelay(60);
tosa_lcd_tg_init(data);
Expand All @@ -221,8 +221,6 @@ static int __devinit tosa_lcd_probe(struct spi_device *spi)

err_register:
tosa_lcd_tg_off(data);
err_gpio_dir:
gpio_free(TOSA_GPIO_TG_ON);
err_gpio_tg:
dev_set_drvdata(&spi->dev, NULL);
return ret;
Expand All @@ -239,7 +237,6 @@ static int __devexit tosa_lcd_remove(struct spi_device *spi)

tosa_lcd_tg_off(data);

gpio_free(TOSA_GPIO_TG_ON);
dev_set_drvdata(&spi->dev, NULL);

return 0;
Expand Down

0 comments on commit 9becd57

Please sign in to comment.