diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-10-17 00:25:55 +0900 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2016-10-17 15:20:52 -0700 |
commit | c0ce317f0c8863d309e7cfb6f6c0fe86e38c6d86 (patch) | |
tree | d7d85b258053abd76b45cbeb09b6d6e541c1da06 /drivers/clk/uniphier | |
parent | 8236d9ac4cf2e51e4355c411612cfbaec8d31942 (diff) | |
download | talos-op-linux-c0ce317f0c8863d309e7cfb6f6c0fe86e38c6d86.tar.gz talos-op-linux-c0ce317f0c8863d309e7cfb6f6c0fe86e38c6d86.zip |
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>
Diffstat (limited to 'drivers/clk/uniphier')
-rw-r--r-- | drivers/clk/uniphier/clk-uniphier-mux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/uniphier/clk-uniphier-mux.c b/drivers/clk/uniphier/clk-uniphier-mux.c index 15a2f2cbe0d9..2c243a894f3b 100644 --- a/drivers/clk/uniphier/clk-uniphier-mux.c +++ b/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); int num_parents = clk_hw_get_num_parents(hw); int ret; - u32 val; + unsigned int val; u8 i; ret = regmap_read(mux->regmap, mux->reg, &val); |