linux/arch/mips
Julia Lawall 42913c7992 MIPS: Loongson2: Use clk API instead of direct dereferences
A struct clk value is intended to be an abstract pointer, so it should be
manipulated using the various API functions.

clk_put is additionally added on the failure paths.

The semantic match that finds the first problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
expression e,e1;
identifier i;
@@

*e = clk_get(...)
 ... when != e = e1
     when any
*e->i
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Cc: kernel-janitors@vger.kernel.org
Cc: linux-mips@linux-mips.org,
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/4751/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2013-02-15 23:07:37 +01:00
..
alchemy MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
ar7 MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
ath79 MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
bcm47xx MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
bcm63xx MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
boot MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
cavium-octeon MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
cobalt MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
configs MIPS: PNX8550: Remove support for SOC and JBS and STB810 boards. 2013-02-01 10:00:21 +01:00
dec MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
emma MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
fw MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
include MIPS: MSP71xx: Move code. 2013-02-01 10:00:22 +01:00
jazz MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
jz4740 MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
kernel MIPS: Loongson2: Use clk API instead of direct dereferences 2013-02-15 23:07:37 +01:00
lantiq MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
lasat MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
lib MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
loongson MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
loongson1 MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
math-emu MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
mm MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
mti-malta MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
mti-sead3 MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
netlogic MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
oprofile MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
pci MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
pmcs-msp71xx MIPS: MSP71xx: Move code. 2013-02-01 10:00:22 +01:00
pnx833x MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
power MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
powertv MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
rb532 MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
sgi-ip22 MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
sgi-ip27 MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
sgi-ip32 MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
sibyte MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
sni MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
txx9 MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
vr41xx MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
wrppmc MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
Kbuild
Kbuild.platforms MIPS: MSP71xx: Move code. 2013-02-01 10:00:22 +01:00
Kconfig MIPS: MSP71xx: Move code. 2013-02-01 10:00:22 +01:00
Kconfig.debug
Makefile MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00