Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 319916
b: refs/heads/master
c: f673934
h: refs/heads/master
v: v3
  • Loading branch information
Jingoo Han authored and Linus Torvalds committed Jul 31, 2012
1 parent 72d4b75 commit 5c44197
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 5f9dd5c9fd4efacc9f8c36c0b3c17a4308bbe4d9
refs/heads/master: f673934c615987abe16919ede8fcd3ff6805d0d6
9 changes: 3 additions & 6 deletions trunk/drivers/video/backlight/ot200_bl.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ static int ot200_backlight_probe(struct platform_device *pdev)
int retval = 0;

/* request gpio */
if (gpio_request(GPIO_DIMM, "ot200 backlight dimmer") < 0) {
if (devm_gpio_request(&pdev->dev, GPIO_DIMM,
"ot200 backlight dimmer") < 0) {
dev_err(&pdev->dev, "failed to request GPIO %d\n", GPIO_DIMM);
return -ENODEV;
}
Expand All @@ -93,8 +94,7 @@ static int ot200_backlight_probe(struct platform_device *pdev)
pwm_timer = cs5535_mfgpt_alloc_timer(7, MFGPT_DOMAIN_ANY);
if (!pwm_timer) {
dev_err(&pdev->dev, "MFGPT 7 not available\n");
retval = -ENODEV;
goto error_mfgpt_alloc;
return -ENODEV;
}

data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL);
Expand Down Expand Up @@ -131,8 +131,6 @@ static int ot200_backlight_probe(struct platform_device *pdev)

error_devm_kzalloc:
cs5535_mfgpt_free_timer(pwm_timer);
error_mfgpt_alloc:
gpio_free(GPIO_DIMM);
return retval;
}

Expand All @@ -149,7 +147,6 @@ static int ot200_backlight_remove(struct platform_device *pdev)
MAX_COMP2 - dim_table[100]);

cs5535_mfgpt_free_timer(pwm_timer);
gpio_free(GPIO_DIMM);

return 0;
}
Expand Down

0 comments on commit 5c44197

Please sign in to comment.