Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 319222
b: refs/heads/master
c: 0c8f527
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Thierry Reding committed Jul 23, 2012
1 parent 07ff878 commit d16a5a0
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: 457fd768ee1f7c78e85dfbe86329e6b24eb36514
refs/heads/master: 0c8f527d8c80a027b46798127a6dd815b4bb99c2
8 changes: 2 additions & 6 deletions trunk/drivers/pwm/pwm-tegra.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ static int tegra_pwm_probe(struct platform_device *pdev)

platform_set_drvdata(pdev, pwm);

pwm->clk = clk_get(&pdev->dev, NULL);
pwm->clk = devm_clk_get(&pdev->dev, NULL);
if (IS_ERR(pwm->clk))
return PTR_ERR(pwm->clk);

Expand All @@ -206,7 +206,6 @@ static int tegra_pwm_probe(struct platform_device *pdev)
ret = pwmchip_add(&pwm->chip);
if (ret < 0) {
dev_err(&pdev->dev, "pwmchip_add() failed: %d\n", ret);
clk_put(pwm->clk);
return ret;
}

Expand All @@ -233,10 +232,7 @@ static int __devexit tegra_pwm_remove(struct platform_device *pdev)
clk_disable_unprepare(pc->clk);
}

pwmchip_remove(&pc->chip);
clk_put(pc->clk);

return 0;
return pwmchip_remove(&pc->chip);
}

#ifdef CONFIG_OF
Expand Down

0 comments on commit d16a5a0

Please sign in to comment.