Skip to content

Commit 97d010d

Browse files
noglitchbebarino
authored andcommitted
clk: at91: programmable: remove unneeded register read
This register read is a leftover of a previous read/modify/write. We now use regmap_update_bits(), so we don't need it anymore. Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent bb631af commit 97d010d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/clk/at91/clk-programmable.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,8 @@ static int clk_programmable_set_rate(struct clk_hw *hw, unsigned long rate,
132132
struct clk_programmable *prog = to_clk_programmable(hw);
133133
const struct clk_programmable_layout *layout = prog->layout;
134134
unsigned long div = parent_rate / rate;
135-
unsigned int pckr;
136135
int shift = 0;
137136

138-
regmap_read(prog->regmap, AT91_PMC_PCKR(prog->id), &pckr);
139-
140137
if (!div)
141138
return -EINVAL;
142139

0 commit comments

Comments
 (0)