clk: nomadik: fix multiplatform problem
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 21 Jan 2014 08:06:21 +0000 (09:06 +0100)
committerMike Turquette <mturquette@linaro.org>
Wed, 26 Feb 2014 19:14:44 +0000 (11:14 -0800)
The Nomadik debugfs screws up multiplatform boots if debugfs
is enabled on the multiplatform image, since it's a simple
initcall that is unconditionally executed and reads from certain
memory locations.

Fix this by checking that the driver has been properly
initialized, so a base offset to the Nomadik SRC controller
exists, before proceeding to register debugfs files.

Reported-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/clk-nomadik.c

Simple merge