]> Pileus Git - ~andy/linux/commit
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)
commitec6deea1a147a10baf1672dc66025a13bc259680
tree4ea10867339bbb006781c84a403602da865c20d1
parent10b7cdc0084c27a312e59e80420c6aac70c64753
clk: nomadik: fix multiplatform problem

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