diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-09-22 06:01:49 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-09-26 06:23:53 -0400 |
commit | aeac9e3f8919cecabca5eed080bb28634ab4d3ce (patch) | |
tree | d280c887118c48f94a382d0f91d649fefd07992e /drivers/video/jz4740_fb.c | |
parent | 8a519c437a1cfd06a5302d4c5b5c9d2df9447609 (diff) |
video: jz4740-fb: Use clk_prepare_enable/clk_disable_unprepare
In preparation to switching the jz4740 clk driver to the common clk framework
update the clk enable/disable calls to clk_prepare_enable/clk_disable_unprepare.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/jz4740_fb.c')
-rw-r--r-- | drivers/video/jz4740_fb.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/video/jz4740_fb.c b/drivers/video/jz4740_fb.c index 23aa47504709..3f99dcb28b09 100644 --- a/drivers/video/jz4740_fb.c +++ b/drivers/video/jz4740_fb.c | |||
@@ -471,7 +471,7 @@ static int jzfb_set_par(struct fb_info *info) | |||
471 | writel(ctrl, jzfb->base + JZ_REG_LCD_CTRL); | 471 | writel(ctrl, jzfb->base + JZ_REG_LCD_CTRL); |
472 | 472 | ||
473 | if (!jzfb->is_enabled) | 473 | if (!jzfb->is_enabled) |
474 | clk_disable(jzfb->ldclk); | 474 | clk_disable_unprepare(jzfb->ldclk); |
475 | 475 | ||
476 | mutex_unlock(&jzfb->lock); | 476 | mutex_unlock(&jzfb->lock); |
477 | 477 | ||
@@ -485,7 +485,7 @@ static void jzfb_enable(struct jzfb *jzfb) | |||
485 | { | 485 | { |
486 | uint32_t ctrl; | 486 | uint32_t ctrl; |
487 | 487 | ||
488 | clk_enable(jzfb->ldclk); | 488 | clk_prepare_enable(jzfb->ldclk); |
489 | 489 | ||
490 | jz_gpio_bulk_resume(jz_lcd_ctrl_pins, jzfb_num_ctrl_pins(jzfb)); | 490 | jz_gpio_bulk_resume(jz_lcd_ctrl_pins, jzfb_num_ctrl_pins(jzfb)); |
491 | jz_gpio_bulk_resume(jz_lcd_data_pins, jzfb_num_data_pins(jzfb)); | 491 | jz_gpio_bulk_resume(jz_lcd_data_pins, jzfb_num_data_pins(jzfb)); |
@@ -514,7 +514,7 @@ static void jzfb_disable(struct jzfb *jzfb) | |||
514 | jz_gpio_bulk_suspend(jz_lcd_ctrl_pins, jzfb_num_ctrl_pins(jzfb)); | 514 | jz_gpio_bulk_suspend(jz_lcd_ctrl_pins, jzfb_num_ctrl_pins(jzfb)); |
515 | jz_gpio_bulk_suspend(jz_lcd_data_pins, jzfb_num_data_pins(jzfb)); | 515 | jz_gpio_bulk_suspend(jz_lcd_data_pins, jzfb_num_data_pins(jzfb)); |
516 | 516 | ||
517 | clk_disable(jzfb->ldclk); | 517 | clk_disable_unprepare(jzfb->ldclk); |
518 | } | 518 | } |
519 | 519 | ||
520 | static int jzfb_blank(int blank_mode, struct fb_info *info) | 520 | static int jzfb_blank(int blank_mode, struct fb_info *info) |
@@ -693,7 +693,7 @@ static int jzfb_probe(struct platform_device *pdev) | |||
693 | 693 | ||
694 | fb_alloc_cmap(&fb->cmap, 256, 0); | 694 | fb_alloc_cmap(&fb->cmap, 256, 0); |
695 | 695 | ||
696 | clk_enable(jzfb->ldclk); | 696 | clk_prepare_enable(jzfb->ldclk); |
697 | jzfb->is_enabled = 1; | 697 | jzfb->is_enabled = 1; |
698 | 698 | ||
699 | writel(jzfb->framedesc->next, jzfb->base + JZ_REG_LCD_DA0); | 699 | writel(jzfb->framedesc->next, jzfb->base + JZ_REG_LCD_DA0); |
@@ -763,7 +763,7 @@ static int jzfb_suspend(struct device *dev) | |||
763 | static int jzfb_resume(struct device *dev) | 763 | static int jzfb_resume(struct device *dev) |
764 | { | 764 | { |
765 | struct jzfb *jzfb = dev_get_drvdata(dev); | 765 | struct jzfb *jzfb = dev_get_drvdata(dev); |
766 | clk_enable(jzfb->ldclk); | 766 | clk_prepare_enable(jzfb->ldclk); |
767 | 767 | ||
768 | mutex_lock(&jzfb->lock); | 768 | mutex_lock(&jzfb->lock); |
769 | if (jzfb->is_enabled) | 769 | if (jzfb->is_enabled) |