Skip to contentSkip to conversation

clk: at91: programmable: remove unneeded register read

PATCH Applied Alexandre Belloni 2 participants 2 messages Feb 23, 2019 – Feb 25, 2019

Subsystems (2)
lore
Share & tools
lore

Alexandre Belloni

author maintainer
#0 lore raw

PATCH 1/1 clk: at91: programmable: remove unneeded register read

From: Nicolas Ferre <[email protected]>

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.

---
 drivers/clk/at91/clk-programmable.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/clk/at91/clk-programmable.c +0 -3
index 5bc68b9c5498..89d6f3736dbf 100644
@@ -132,11 +132,8 @@ static int clk_programmable_set_rate(struct clk_hw *hw, unsigned long rate,
 	struct clk_programmable *prog = to_clk_programmable(hw);
 	const struct clk_programmable_layout *layout = prog->layout;
 	unsigned long div = parent_rate / rate;
-	unsigned int pckr;
 	int shift = 0;
 
-	regmap_read(prog->regmap, AT91_PMC_PCKR(prog->id), &pckr);
-
 	if (!div)
 		return -EINVAL;
 
Signature · 1 line
2.20.1