clocksource: timer-sp804: Unmap region obtained by of_iomap
PATCH 1/1 clocksource: timer-sp804: Unmap region obtained by of_iomap
Free memory mapping, if integrator_cp_of_init is not successful.
Signed-off-by Arvind Yadav <[email protected]>
--- drivers/clocksource/timer-sp804.c | 1 + 1 file changed, 1 insertion(+)
drivers/clocksource/timer-sp804.c +1 -0
@@ -306,6 +306,7 @@ static int __init integrator_cp_of_init(struct device_node *np) clk =of_clk_get (np,0 );if (IS_ERR (clk)) {pr_err ("Failed to get clock" ); +iounmap (base);return PTR_ERR (clk); }
Signature · 1 line
2.7.4