mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 17:11:46 +00:00
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>
This commit is contained in:
parent
bb631af3d5
commit
97d010dc42
1 changed files with 0 additions and 3 deletions
|
@ -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);
|
struct clk_programmable *prog = to_clk_programmable(hw);
|
||||||
const struct clk_programmable_layout *layout = prog->layout;
|
const struct clk_programmable_layout *layout = prog->layout;
|
||||||
unsigned long div = parent_rate / rate;
|
unsigned long div = parent_rate / rate;
|
||||||
unsigned int pckr;
|
|
||||||
int shift = 0;
|
int shift = 0;
|
||||||
|
|
||||||
regmap_read(prog->regmap, AT91_PMC_PCKR(prog->id), &pckr);
|
|
||||||
|
|
||||||
if (!div)
|
if (!div)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue