Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 319918
b: refs/heads/master
c: f5b7194
h: refs/heads/master
v: v3
  • Loading branch information
Jingoo Han authored and Linus Torvalds committed Jul 31, 2012
1 parent 9becd57 commit 263a376
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 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: 402ff9a26427c2c8fa5424c24ba04a7f6ecc25f1
refs/heads/master: f5b71941a5359cd6702be26715fd57d47187c0d9
8 changes: 2 additions & 6 deletions trunk/drivers/video/backlight/tosa_bl.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,14 @@ static int __devinit tosa_bl_probe(struct i2c_client *client,

data->comadj = sharpsl_param.comadj == -1 ? COMADJ_DEFAULT : sharpsl_param.comadj;

ret = gpio_request(TOSA_GPIO_BL_C20MA, "backlight");
ret = devm_gpio_request(&client->dev, TOSA_GPIO_BL_C20MA, "backlight");
if (ret) {
dev_dbg(&data->bl->dev, "Unable to request gpio!\n");
return ret;
}
ret = gpio_direction_output(TOSA_GPIO_BL_C20MA, 0);
if (ret)
goto err_gpio_dir;
return ret;

i2c_set_clientdata(client, data);
data->i2c = client;
Expand All @@ -123,8 +123,6 @@ static int __devinit tosa_bl_probe(struct i2c_client *client,

err_reg:
data->bl = NULL;
err_gpio_dir:
gpio_free(TOSA_GPIO_BL_C20MA);
return ret;
}

Expand All @@ -135,8 +133,6 @@ static int __devexit tosa_bl_remove(struct i2c_client *client)
backlight_device_unregister(data->bl);
data->bl = NULL;

gpio_free(TOSA_GPIO_BL_C20MA);

return 0;
}

Expand Down

0 comments on commit 263a376

Please sign in to comment.