Commit 5afddee4 authored by Nicolas Ferre's avatar Nicolas Ferre
Browse files

AT91: clock: peripheral clocks can have other parent than mck



While registering clock allow to set parent clock other
than mck. It is useful for clocks than can be seen as
child clock of a peripheral.

Signed-off-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: default avatarJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: default avatarAndrew Victor <linux@maxim.org.za>
parent 8d2602e0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -501,6 +501,7 @@ postcore_initcall(at91_clk_debugfs_init);
int __init clk_register(struct clk *clk)
{
	if (clk_is_peripheral(clk)) {
		if (!clk->parent)
			clk->parent = &mck;
		clk->mode = pmc_periph_mode;
		list_add_tail(&clk->node, &clocks);