ARM: SAMSUNG: Add check to ensure that clksrc_clk does have multiple clock sources
authorThomas Abraham <thomas.ab@samsung.com>
Mon, 18 Jan 2010 05:30:16 +0000 (14:30 +0900)
committerBen Dooks <ben-linux@fluff.org>
Mon, 18 Jan 2010 06:28:37 +0000 (15:28 +0900)
commitb8792dbff6ed93c5a77f71917d4a0c5efa12eee1
tree4c72869f4868043b559d2f8dc38151faf3adc9f0
parenta0de298a0eee7f9004a8e512c12c7b40d66c9934
ARM: SAMSUNG: Add check to ensure that clksrc_clk does have multiple clock sources

Adds a additional check in s3c_set_clksrc function to ensure that the clksrc_clk
does have a choice of multiple clock sources. In addition to this, a check is
added to ensure that a parent is assigned to the clksrc_clk in case it does not
have a choice of parent clocks.

Signed-off-by: Thomas Abraham <thomas.ab@samsung.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
arch/arm/plat-samsung/clock-clksrc.c