Commit 07cd5c74 authored by Akshay Saraswat's avatar Akshay Saraswat Committed by Minkyu Kang
Browse files

Exynos: pwm: Remove dead code of function exynos5_get_pwm_clk

As we shall now be using clock_get_periph_rate function.
We find no reason for keeping code in function exynos5_get_pwm_clk.
Hence, removing it.

Signed-off-by: default avatarAkshay Saraswat <>
Signed-off-by: default avatarMinkyu Kang <>
parent e2338704
......@@ -468,27 +468,6 @@ static unsigned long exynos4x12_get_pwm_clk(void)
return pclk;
/* exynos5: return pwm clock frequency */
static unsigned long exynos5_get_pwm_clk(void)
struct exynos5_clock *clk =
(struct exynos5_clock *)samsung_get_base_clock();
unsigned long pclk, sclk;
unsigned int ratio;
* PWM_RATIO [3:0]
ratio = readl(&clk->div_peric3);
ratio = ratio & 0xf;
sclk = get_pll_clk(MPLL);
pclk = sclk / (ratio + 1);
return pclk;
/* exynos4: return uart clock frequency */
static unsigned long exynos4_get_uart_clk(int dev_index)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment