Skip to content

Commit d8ad0d9

Browse files
committed
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>
1 parent cd07cc1 commit d8ad0d9

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

drivers/clk/at91/clk-programmable.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,8 @@ static int clk_programmable_set_rate(struct clk_hw *hw, unsigned long rate,
157157
struct clk_programmable *prog = to_clk_programmable(hw);
158158
const struct clk_programmable_layout *layout = prog->layout;
159159
unsigned long div = parent_rate / rate;
160-
unsigned int pckr;
161160
int shift = 0;
162161

163-
regmap_read(prog->regmap, AT91_PMC_PCKR(prog->id), &pckr);
164-
165162
if (!div)
166163
return -EINVAL;
167164

0 commit comments

Comments
 (0)