From: Tony Lindgren Date: Thu, 15 Jan 2015 01:37:15 +0000 (-0800) Subject: ARM: OMAP2+: Fix error handling for omap2_clk_enable_init_clocks X-Git-Tag: omap-for-v3.20/fixes-not-urgent-pt1~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=339d095ab23cf5de223c9633ee4d3ec1794282af;p=pandora-kernel.git ARM: OMAP2+: Fix error handling for omap2_clk_enable_init_clocks We need to check if we got the clock before trying to do anything with it. Otherwise we will get something like this: Unable to handle kernel paging request at virtual address fffffffe ... [] (clk_prepare) from [] (omap2_clk_enable_init_clocks+0x50/0x8) [] (omap2_clk_enable_init_clocks) from [] (dm816x_dt_clk_init+0) ... Let's add check for the clock and WARN if the init clock was not found. Cc: Brian Hutchinson Cc: Paul Walmsley Cc: Tero Kristo Reviewed-by: Felipe Balbi Signed-off-by: Tony Lindgren --- Reading git-diff-tree failed