projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38e4aa0
)
clk: vt8500: Missing breaks in vtwm_pll_round_rate/_set_rate.
author
Tony Prisk
<linux@prisktech.co.nz>
Sun, 14 Apr 2013 05:28:35 +0000
(17:28 +1200)
committer
Mike Turquette
<mturquette@linaro.org>
Sun, 14 Apr 2013 07:02:44 +0000
(
00:02
-0700)
The case of PLL_TYPE_WM8750 in both these functions is missing a break
statement causing a fall-through to the default: case.
Insert the missing break statements.
Signed-off-by: Tony Prisk <linux@prisktech.co.nz>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/clk-vt8500.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/clk/clk-vt8500.c
b/drivers/clk/clk-vt8500.c
index b5538bba7a10b84581c70d51357a8e360fc81545..6bc82d1bfe789fd12ac6554360bb15c305485aed 100644
(file)
--- a/
drivers/clk/clk-vt8500.c
+++ b/
drivers/clk/clk-vt8500.c
@@
-488,6
+488,7
@@
static int vtwm_pll_set_rate(struct clk_hw *hw, unsigned long rate,
case PLL_TYPE_WM8750:
wm8750_find_pll_bits(rate, parent_rate, &filter, &mul, &div1, &div2);
pll_val = WM8750_BITS_TO_VAL(filter, mul, div1, div2);
+ break;
default:
pr_err("%s: invalid pll type\n", __func__);
return 0;
@@
-523,6
+524,7
@@
static long vtwm_pll_round_rate(struct clk_hw *hw, unsigned long rate,
case PLL_TYPE_WM8750:
wm8750_find_pll_bits(rate, *prate, &filter, &mul, &div1, &div2);
round_rate = WM8750_BITS_TO_FREQ(*prate, mul, div1, div2);
+ break;
default:
round_rate = 0;
}