From: Maxime Ripard Date: Sat, 2 May 2015 15:03:22 +0000 (+0200) Subject: clk: sunxi: Fix of_io_request_and_map error check X-Git-Tag: omap-for-v4.3/legacy-v2-signed~79^2~9^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ac382c311fc12ccfb74832afe545ce8c38cc459;p=pandora-kernel.git 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 Cc: Mike Turquette Cc: Stephen Boyd Cc: linux-clk@vger.kernel.org --- Reading git-diff-tree failed