summaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorRajendra Nayak <rnayak@ti.com>2012-06-06 14:41:31 +0530
committerMike Turquette <mturquette@linaro.org>2012-06-25 16:51:47 -0700
commit7975059db572eb47f0fb272a62afeae272a4b209 (patch)
tree076b85e7b2a9e6fd1f24416e54566cd63b7d336b /arch/arm
parent3a35fc3a13333e7c137de82d8bf12bbc18639633 (diff)
clk: Allow late cache allocation for clk->parents
Parent clocks for muxes are cached in clk->parents to avoid frequent lookups, however the cache allocation happens only during clock registeration and later clk_set_parent() assumes a cache space available and allocated. This is not entirely true for platforms which do early clock registerations wherein the cache allocation using kzalloc could fail during clock registeration. Allow cache allocation to happen later as part of clk_set_parent() to help such cases and avoid crashes assuming a cache being available. While here also replace existing kmalloc() with kzalloc() in the file. Signed-off-by: Rajendra Nayak <rnayak@ti.com> Signed-off-by: Mike Turquette <mturquette@linaro.org> Cc: stable@kernel.org
Diffstat (limited to 'arch/arm')
0 files changed, 0 insertions, 0 deletions