From: Tero Kristo Date: Fri, 12 Jul 2013 09:26:41 +0000 (+0300) Subject: ARM: OMAP: hwmod: fix an incorrect clk type cast with _get_clkdm X-Git-Tag: v3.14-rc1~68^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=924f9498acb004d8cb704a008f1060fad604ccca;p=pandora-kernel.git ARM: OMAP: hwmod: fix an incorrect clk type cast with _get_clkdm If the main clock for a hwmod is of basic clock type, it is illegal to type cast this to clk_hw_omap and will result in bogus data. Fixed by checking the clock flags before attempting the type cast. Signed-off-by: Tero Kristo Tested-by: Nishanth Menon Acked-by: Tony Lindgren Signed-off-by: Mike Turquette --- Reading git-diff-tree failed