From: Grygorii Strashko Date: Sat, 23 Nov 2013 21:31:12 +0000 (-0500) Subject: clk: keystone: gate: fix error handling on init X-Git-Tag: v3.14-rc1~109^2~28^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0c223ec67a98f70770eec85e625015f5af69f10;p=pandora-kernel.git clk: keystone: gate: fix error handling on init This patch fixes Keystone gate control clock driver initialization path: 1) clk_register_psc() returns error code and not a pure pointer, hence its return value need to be checked using IS_ERR(clk) macro. 2) Mapped IO memory isn't unmapped in case of errors, hence fix it. Cc: Mike Turquette Signed-off-by: Santosh Shilimkar --- Reading git-diff-tree failed