]> git.baikalelectronics.ru Git - kernel.git/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)
commitdd72a82da9599a9ea8779fc97ec36f82dac1d1ba
tree4ea10867339bbb006781c84a403602da865c20d1
parentc906b3f38b4de08ce7ee598f14f6d774d3064028
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