linux/arch/mips/kernel/cpufreq
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
..
Kconfig MIPS: Loongson 2F: Add CPU frequency scaling support 2009-12-17 01:57:20 +00:00
loongson2_cpufreq.c MIPS: Loongson2: Use clk API instead of direct dereferences 2013-02-15 23:07:37 +01:00
Makefile MIPS: Loongson 2: Sort out clock managment. 2012-08-01 18:10:06 +02:00