clk: mxs: fix clock lookup after freeing init memory
authorMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 21 Jun 2012 18:04:25 +0000 (20:04 +0200)
committerMike Turquette <mturquette@linaro.org>
Mon, 25 Jun 2012 23:51:48 +0000 (16:51 -0700)
commitd03ac61daa8d4d17cd83a5ab98e85b616b90c7ac
tree80f412f46d6d37af196899f40877148ed4407aaa
parentd6dc55c1857ff1911780881b74537785d8a4e6e1
clk: mxs: fix clock lookup after freeing init memory

The struct clk_lookup are marked as __initdata, resulting in being
removed from memory after the kernel finished booting. However this
leads to a NULL pointer de-ref if loading a module which uses clk_get.

This patch removes the __initdata from the struct clk_lookup.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/mxs/clk-imx23.c
drivers/clk/mxs/clk-imx28.c