Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310184
b: refs/heads/master
c: c0010eb
h: refs/heads/master
v: v3
  • Loading branch information
Viresh Kumar authored and David Woodhouse committed May 14, 2012
1 parent 2a555a3 commit 360d79b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 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: 47d0505bdba39f3bf247b5d57d94b4a5fa8ae475
refs/heads/master: c0010eb5c9f1587a8831e3e7444d0d472643bf78
14 changes: 7 additions & 7 deletions trunk/drivers/mtd/devices/spear_smi.c
Original file line number Diff line number Diff line change
Expand Up @@ -990,9 +990,9 @@ static int __devinit spear_smi_probe(struct platform_device *pdev)
goto err_clk;
}

ret = clk_enable(dev->clk);
ret = clk_prepare_enable(dev->clk);
if (ret)
goto err_clk_enable;
goto err_clk_prepare_enable;

ret = request_irq(irq, spear_smi_int_handler, 0, pdev->name, dev);
if (ret) {
Expand Down Expand Up @@ -1020,8 +1020,8 @@ static int __devinit spear_smi_probe(struct platform_device *pdev)
free_irq(irq, dev);
platform_set_drvdata(pdev, NULL);
err_irq:
clk_disable(dev->clk);
err_clk_enable:
clk_disable_unprepare(dev->clk);
err_clk_prepare_enable:
clk_put(dev->clk);
err_clk:
iounmap(dev->io_base);
Expand Down Expand Up @@ -1074,7 +1074,7 @@ static int __devexit spear_smi_remove(struct platform_device *pdev)
irq = platform_get_irq(pdev, 0);
free_irq(irq, dev);

clk_disable(dev->clk);
clk_disable_unprepare(dev->clk);
clk_put(dev->clk);
iounmap(dev->io_base);
kfree(dev);
Expand All @@ -1091,7 +1091,7 @@ int spear_smi_suspend(struct platform_device *pdev, pm_message_t state)
struct spear_smi *dev = platform_get_drvdata(pdev);

if (dev && dev->clk)
clk_disable(dev->clk);
clk_disable_unprepare(dev->clk);

return 0;
}
Expand All @@ -1102,7 +1102,7 @@ int spear_smi_resume(struct platform_device *pdev)
int ret = -EPERM;

if (dev && dev->clk)
ret = clk_enable(dev->clk);
ret = clk_prepare_enable(dev->clk);

if (!ret)
spear_smi_hw_init(dev);
Expand Down

0 comments on commit 360d79b

Please sign in to comment.