clk: sunxi: tcon-ch1: Do not return a negative error in get_parent
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 11 May 2016 18:57:44 +0000 (20:57 +0200)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Fri, 10 Jun 2016 09:49:15 +0000 (11:49 +0200)
commit4de2d58bc973caa8988b44ddd11787e57051c843
treee2568a9df7272d15d3583eb0a820f336065f2bf9
parent1a695a905c18548062509178b98bc91e67510864
clk: sunxi: tcon-ch1: Do not return a negative error in get_parent

get_parent is supposed to return an unsigned 8 bit integer, so returning
-EINVAL is a bad idea.

Remove it.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/clk/sunxi/clk-sun4i-tcon-ch1.c