aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/s3c-fb.c
diff options
context:
space:
mode:
authorThomas Abraham <thomas.abraham@linaro.org>2012-10-02 19:57:40 -0400
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2012-10-09 22:06:00 -0400
commit5ce24978983477034f0b0c0bfd7e4a6026103958 (patch)
treefd74b7c102357330ee6afab3dfe04ede6f180307 /drivers/video/s3c-fb.c
parent7a93cbbb51c56d021907ba6863d469feee73f379 (diff)
video: s3c-fb: use clk_prepare_enable and clk_disable_unprepare
Convert clk_enable/clk_disable to clk_prepare_enable/clk_disable_unprepare calls as required by common clock framework. Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org> Acked-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'drivers/video/s3c-fb.c')
-rw-r--r--drivers/video/s3c-fb.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/video/s3c-fb.c b/drivers/video/s3c-fb.c
index 52b744f58f4f..2ed7b633bbd9 100644
--- a/drivers/video/s3c-fb.c
+++ b/drivers/video/s3c-fb.c
@@ -1404,7 +1404,7 @@ static int __devinit s3c_fb_probe(struct platform_device *pdev)
1404 return PTR_ERR(sfb->bus_clk); 1404 return PTR_ERR(sfb->bus_clk);
1405 } 1405 }
1406 1406
1407 clk_enable(sfb->bus_clk); 1407 clk_prepare_enable(sfb->bus_clk);
1408 1408
1409 if (!sfb->variant.has_clksel) { 1409 if (!sfb->variant.has_clksel) {
1410 sfb->lcd_clk = devm_clk_get(dev, "sclk_fimd"); 1410 sfb->lcd_clk = devm_clk_get(dev, "sclk_fimd");
@@ -1414,7 +1414,7 @@ static int __devinit s3c_fb_probe(struct platform_device *pdev)
1414 goto err_bus_clk; 1414 goto err_bus_clk;
1415 } 1415 }
1416 1416
1417 clk_enable(sfb->lcd_clk); 1417 clk_prepare_enable(sfb->lcd_clk);
1418 } 1418 }
1419 1419
1420 pm_runtime_enable(sfb->dev); 1420 pm_runtime_enable(sfb->dev);
@@ -1504,10 +1504,10 @@ err_lcd_clk:
1504 pm_runtime_disable(sfb->dev); 1504 pm_runtime_disable(sfb->dev);
1505 1505
1506 if (!sfb->variant.has_clksel) 1506 if (!sfb->variant.has_clksel)
1507 clk_disable(sfb->lcd_clk); 1507 clk_disable_unprepare(sfb->lcd_clk);
1508 1508
1509err_bus_clk: 1509err_bus_clk:
1510 clk_disable(sfb->bus_clk); 1510 clk_disable_unprepare(sfb->bus_clk);
1511 1511
1512 return ret; 1512 return ret;
1513} 1513}
@@ -1531,9 +1531,9 @@ static int __devexit s3c_fb_remove(struct platform_device *pdev)
1531 s3c_fb_release_win(sfb, sfb->windows[win]); 1531 s3c_fb_release_win(sfb, sfb->windows[win]);
1532 1532
1533 if (!sfb->variant.has_clksel) 1533 if (!sfb->variant.has_clksel)
1534 clk_disable(sfb->lcd_clk); 1534 clk_disable_unprepare(sfb->lcd_clk);
1535 1535
1536 clk_disable(sfb->bus_clk); 1536 clk_disable_unprepare(sfb->bus_clk);
1537 1537
1538 pm_runtime_put_sync(sfb->dev); 1538 pm_runtime_put_sync(sfb->dev);
1539 pm_runtime_disable(sfb->dev); 1539 pm_runtime_disable(sfb->dev);
@@ -1561,9 +1561,9 @@ static int s3c_fb_suspend(struct device *dev)
1561 } 1561 }
1562 1562
1563 if (!sfb->variant.has_clksel) 1563 if (!sfb->variant.has_clksel)
1564 clk_disable(sfb->lcd_clk); 1564 clk_disable_unprepare(sfb->lcd_clk);
1565 1565
1566 clk_disable(sfb->bus_clk); 1566 clk_disable_unprepare(sfb->bus_clk);
1567 1567
1568 pm_runtime_put_sync(sfb->dev); 1568 pm_runtime_put_sync(sfb->dev);
1569 1569
@@ -1581,10 +1581,10 @@ static int s3c_fb_resume(struct device *dev)
1581 1581
1582 pm_runtime_get_sync(sfb->dev); 1582 pm_runtime_get_sync(sfb->dev);
1583 1583
1584 clk_enable(sfb->bus_clk); 1584 clk_prepare_enable(sfb->bus_clk);
1585 1585
1586 if (!sfb->variant.has_clksel) 1586 if (!sfb->variant.has_clksel)
1587 clk_enable(sfb->lcd_clk); 1587 clk_prepare_enable(sfb->lcd_clk);
1588 1588
1589 /* setup gpio and output polarity controls */ 1589 /* setup gpio and output polarity controls */
1590 pd->setup_gpio(); 1590 pd->setup_gpio();
@@ -1640,9 +1640,9 @@ static int s3c_fb_runtime_suspend(struct device *dev)
1640 struct s3c_fb *sfb = platform_get_drvdata(pdev); 1640 struct s3c_fb *sfb = platform_get_drvdata(pdev);
1641 1641
1642 if (!sfb->variant.has_clksel) 1642 if (!sfb->variant.has_clksel)
1643 clk_disable(sfb->lcd_clk); 1643 clk_disable_unprepare(sfb->lcd_clk);
1644 1644
1645 clk_disable(sfb->bus_clk); 1645 clk_disable_unprepare(sfb->bus_clk);
1646 1646
1647 return 0; 1647 return 0;
1648} 1648}
@@ -1653,10 +1653,10 @@ static int s3c_fb_runtime_resume(struct device *dev)
1653 struct s3c_fb *sfb = platform_get_drvdata(pdev); 1653 struct s3c_fb *sfb = platform_get_drvdata(pdev);
1654 struct s3c_fb_platdata *pd = sfb->pdata; 1654 struct s3c_fb_platdata *pd = sfb->pdata;
1655 1655
1656 clk_enable(sfb->bus_clk); 1656 clk_prepare_enable(sfb->bus_clk);
1657 1657
1658 if (!sfb->variant.has_clksel) 1658 if (!sfb->variant.has_clksel)
1659 clk_enable(sfb->lcd_clk); 1659 clk_prepare_enable(sfb->lcd_clk);
1660 1660
1661 /* setup gpio and output polarity controls */ 1661 /* setup gpio and output polarity controls */
1662 pd->setup_gpio(); 1662 pd->setup_gpio();