diff options
author | Maxime Ripard <maxime.ripard@free-electrons.com> | 2015-05-02 17:03:22 +0200 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@free-electrons.com> | 2015-05-05 17:43:57 +0200 |
commit | 5ac382c311fc12ccfb74832afe545ce8c38cc459 (patch) | |
tree | 6f7c3a313d5c6691b06351e938f00fbd81e1789f /drivers/clk/zynq | |
parent | Linux 4.1-rc1 (diff) | |
download | linux-5ac382c311fc12ccfb74832afe545ce8c38cc459.tar.xz linux-5ac382c311fc12ccfb74832afe545ce8c38cc459.zip |
clk: sunxi: Fix of_io_request_and_map error check
of_io_request_and map returns an error pointer, but the current code assumes
that on error the returned pointer will be NULL.
Obviously, that makes the check completely useless. Change the test to actually
check for the proper error code.
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Cc: Mike Turquette <mturquette@linaro.org>
Cc: Stephen Boyd <sboyd@codeaurora.org>
Cc: linux-clk@vger.kernel.org
Diffstat (limited to 'drivers/clk/zynq')
0 files changed, 0 insertions, 0 deletions