clk: mediatek: fixed static checker warning in clk_cpumux_get_parent call
authorSean Wang <sean.wang@mediatek.com>
Mon, 17 Jul 2017 06:01:19 +0000 (14:01 +0800)
committerStephen Boyd <sboyd@codeaurora.org>
Tue, 18 Jul 2017 01:17:28 +0000 (18:17 -0700)
commitfa12167cedea353e71dfb776023b84381305b4d9
tree106d19ea27ece6fd2f0a4dc1c3858a7f995a9861
parent3a11c6618e176aecf129c6d2f0cbc9440672f378
clk: mediatek: fixed static checker warning in clk_cpumux_get_parent call

Fixed the signedness bug returning '(-22)' on the return type as u8 with
removing the sanity checker in clk_cpumux_get_parent() since
clk_cpumux_set_parent() always ensures validity in clk_cpumux_get_parent()
got called.

Fixes: 1e17de9049da ("clk: mediatek: add missing cpu mux causing Mediatek cpufreq can't work")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/mediatek/clk-cpumux.c