]> git.baikalelectronics.ru Git - kernel.git/commit
clk: keystone: gate: fix error handling on init
authorGrygorii Strashko <grygorii.strashko@ti.com>
Sat, 23 Nov 2013 21:31:12 +0000 (16:31 -0500)
committerSantosh Shilimkar <santosh.shilimkar@ti.com>
Tue, 10 Dec 2013 16:08:20 +0000 (11:08 -0500)
commitf388b3f01274f42c4398274bfe127715676df342
treede0fd8d079dd75bd719911b9f3fc99b1f04354a6
parent19b25c2051d1645db24e0410e57b66cb13e7aeae
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 <mturquette@linaro.org
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
drivers/clk/keystone/gate.c