kernel-fxtec-pro1x/drivers/clk/sunxi
Himangi Saraogi c3dcac875e 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:

// <smpl>
@@
expression e,e1;
statement S;
@@

*e = devm_ioremap_resource(...);
if (!e1) S

// </smpl>

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Acked-by Boris BREZILLON <boris.brezillon@free-electrons.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
2014-07-01 23:37:34 -07:00
..
clk-a10-hosc.c clk: sunxi: Move the 24M oscillator to a file of its own 2014-06-11 09:58:44 +02:00
clk-a20-gmac.c clk: sunxi: Move the GMAC clock to a file of its own 2014-06-11 09:58:44 +02:00
clk-factors.c clk: sunxi: factors: automatic reparenting support 2014-05-05 15:55:56 -07:00
clk-factors.h clk: sunxi: register factors clocks behind composite 2013-12-28 17:07:42 -03:00
clk-sun6i-apb0-gates.c clk: sunxi: fix devm_ioremap_resource error detection code 2014-07-01 23:37:34 -07:00
clk-sun6i-apb0.c clk: sunxi: add PRCM (Power/Reset/Clock Management) clks support 2014-06-11 10:25:02 +02:00
clk-sun6i-ar100.c clk: sunxi: add PRCM (Power/Reset/Clock Management) clks support 2014-06-11 10:25:02 +02:00
clk-sunxi.c clk: sun6i: Protect SDRAM gating bit 2014-06-11 10:25:02 +02:00
Makefile clk: sunxi: add PRCM (Power/Reset/Clock Management) clks support 2014-06-11 10:25:02 +02:00