sh: clkfwk: remove bogus set_bus_parent() from SH7709.
authorRafael Ignacio Zurita <rizurita@yahoo.com>
Mon, 14 Sep 2009 03:01:58 +0000 (03:01 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 14 Sep 2009 05:09:00 +0000 (14:09 +0900)
commit2fd5a021071ef54c503ab8d9894acae3eccf4f92
tree4cc3f15b688e0d1cd9f5b5cc3e150a34fc8638a7
parent6a78ec16ca40cc98e387b2d8d80adbeedda02bbc
sh: clkfwk: remove bogus set_bus_parent() from SH7709.

This fixes up broken clock re-parenting undertaken by the SH7709 clock
framework code, which is currently in conflict with the legacy CPG
framework. With this change in place, the legacy CPG ancestry is used,
and we manage to avoid contending on the clock_list_sem mutex, which is
already held under the legacy registration path, resulting in livelock.

In order for SH7709 to fully support the varying clock modes, it needs to
implement a more complete clock framework. After this change it is in
sync with legacy CPG mode, which ends up being the default configuration
for this CPU anyways.

Signed-off-by: Rafael Ignacio Zurita <rizurita@yahoo.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/cpu/sh3/clock-sh7709.c