From: Julia Lawall Date: Thu, 3 Jan 2013 09:34:20 +0000 (+0000) Subject: MIPS: Loongson2: Use clk API instead of direct dereferences X-Git-Tag: v3.9-rc1~26^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42913c7992e9aca4deded016a05f6654e9b0807b;p=pandora-kernel.git 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/) // @@ expression e,e1; identifier i; @@ *e = clk_get(...) ... when != e = e1 when any *e->i // Signed-off-by: Julia Lawall 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 --- Reading git-diff-tree failed