Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 272201
b: refs/heads/master
c: 4f5a66b
h: refs/heads/master
i:
  272199: 1511395
v: v3
  • Loading branch information
Fabio Estevam authored and Linus Torvalds committed Nov 1, 2011
1 parent fc2429a commit 7f5108d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 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: 0556dc340e5159cdff925a5ab7f3a72f49745661
refs/heads/master: 4f5a66b05971d6be08fd596139cd190758831686
15 changes: 4 additions & 11 deletions trunk/drivers/video/backlight/l4f00242t03.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,29 +171,22 @@ static int __devinit l4f00242t03_probe(struct spi_device *spi)

priv->spi = spi;

ret = gpio_request(pdata->reset_gpio, "lcd l4f00242t03 reset");
ret = gpio_request_one(pdata->reset_gpio, GPIOF_OUT_INIT_HIGH,
"lcd l4f00242t03 reset");
if (ret) {
dev_err(&spi->dev,
"Unable to get the lcd l4f00242t03 reset gpio.\n");
goto err;
}

ret = gpio_direction_output(pdata->reset_gpio, 1);
if (ret)
goto err2;

ret = gpio_request(pdata->data_enable_gpio,
"lcd l4f00242t03 data enable");
ret = gpio_request_one(pdata->data_enable_gpio, GPIOF_OUT_INIT_LOW,
"lcd l4f00242t03 data enable");
if (ret) {
dev_err(&spi->dev,
"Unable to get the lcd l4f00242t03 data en gpio.\n");
goto err2;
}

ret = gpio_direction_output(pdata->data_enable_gpio, 0);
if (ret)
goto err3;

priv->io_reg = regulator_get(&spi->dev, "vdd");
if (IS_ERR(priv->io_reg)) {
dev_err(&spi->dev, "%s: Unable to get the IO regulator\n",
Expand Down

0 comments on commit 7f5108d

Please sign in to comment.