clk: sunxi-ng: de2: fix wrong pointer passed to PTR_ERR()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 18 May 2017 15:55:13 +0000 (15:55 +0000)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 7 Jun 2017 13:32:14 +0000 (15:32 +0200)
commit1f6d640cad6e5885e175ed359b87f615a3448e8f
tree1114b60de7c61b3de19ebac60084a292293c8997
parent0adad031ef5d0d89ee92d92964d3799685ea2387
clk: sunxi-ng: de2: fix wrong pointer passed to PTR_ERR()

PTR_ERR should access the value just tested by IS_ERR, otherwise
the wrong error code will be returned.

Fixes: b0d9a4bd52bd ("clk: sunxi-ng: add support for DE2 CCU")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/clk/sunxi-ng/ccu-sun8i-de2.c