diff options
| -rw-r--r-- | drivers/clk/at91/clk-programmable.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/clk/at91/clk-programmable.c b/drivers/clk/at91/clk-programmable.c index 5bc68b9c5498..89d6f3736dbf 100644 --- a/drivers/clk/at91/clk-programmable.c +++ b/drivers/clk/at91/clk-programmable.c | |||
| @@ -132,11 +132,8 @@ static int clk_programmable_set_rate(struct clk_hw *hw, unsigned long rate, | |||
| 132 | struct clk_programmable *prog = to_clk_programmable(hw); | 132 | struct clk_programmable *prog = to_clk_programmable(hw); |
| 133 | const struct clk_programmable_layout *layout = prog->layout; | 133 | const struct clk_programmable_layout *layout = prog->layout; |
| 134 | unsigned long div = parent_rate / rate; | 134 | unsigned long div = parent_rate / rate; |
| 135 | unsigned int pckr; | ||
| 136 | int shift = 0; | 135 | int shift = 0; |
| 137 | 136 | ||
| 138 | regmap_read(prog->regmap, AT91_PMC_PCKR(prog->id), &pckr); | ||
| 139 | |||
| 140 | if (!div) | 137 | if (!div) |
| 141 | return -EINVAL; | 138 | return -EINVAL; |
| 142 | 139 | ||
