]> git.karo-electronics.de Git - linux-beck.git/commit
sh: call clock framework init() callback once
authorMagnus Damm <damm@igel.co.jp>
Thu, 7 May 2009 10:31:39 +0000 (10:31 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 8 May 2009 02:38:28 +0000 (11:38 +0900)
commitb3cacf318172757783d8272fc333284dd4f50140
treed1fae2277559908d5c86db8daabd605db233c2b7
parent5dafc91fca9135a7b0acb76d9709f4abfad92d6e
sh: call clock framework init() callback once

Make sure that clk->ops->init() only gets called once in
the case of CLK_ALWAYS_ENABLED. Without this patch the
init() callback may be called multiple times.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/cpu/clock.c