Sfoglia il codice sorgente

clk: uniphier: fix type of variable passed to regmap_read()

The 3rd argument of regmap_read() takes a pointer to unsigned int.
This driver is saved just because u32 happens to be typedef'ed as
unsigned int, but we should not rely on that fact.  Change the
variable type just in case.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Masahiro Yamada 8 anni fa
parent
commit
c0ce317f0c
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      drivers/clk/uniphier/clk-uniphier-mux.c

+ 1 - 1
drivers/clk/uniphier/clk-uniphier-mux.c

@@ -42,7 +42,7 @@ static u8 uniphier_clk_mux_get_parent(struct clk_hw *hw)
 	struct uniphier_clk_mux *mux = to_uniphier_clk_mux(hw);
 	struct uniphier_clk_mux *mux = to_uniphier_clk_mux(hw);
 	int num_parents = clk_hw_get_num_parents(hw);
 	int num_parents = clk_hw_get_num_parents(hw);
 	int ret;
 	int ret;
-	u32 val;
+	unsigned int val;
 	u8 i;
 	u8 i;
 
 
 	ret = regmap_read(mux->regmap, mux->reg, &val);
 	ret = regmap_read(mux->regmap, mux->reg, &val);