From: Himangi Saraogi Date: Sat, 28 Jun 2014 17:23:55 +0000 (+0530) Subject: clk: sunxi: fix devm_ioremap_resource error detection code X-Git-Tag: omap-for-v3.17/fixes-against-rc2~295^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3dcac875e35c2e67ccaef10ef62ae5b1410d29c;p=pandora-kernel.git clk: sunxi: fix devm_ioremap_resource error detection code devm_ioremap_resource returns an ERR_PTR value, not NULL, on failure. A simplified version of the semantic match that finds this problem is as follows: // @@ expression e,e1; statement S; @@ *e = devm_ioremap_resource(...); if (!e1) S // Signed-off-by: Himangi Saraogi Acked-by: Julia Lawall Acked-by Boris BREZILLON Signed-off-by: Mike Turquette --- Reading git-diff-tree failed