Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: mmci: convert to clk_prepare()/clk_unprepare()

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

+8 -1
+8 -1
drivers/mmc/host/mmci.c
··· 1160 1160 goto host_free; 1161 1161 } 1162 1162 1163 - ret = clk_enable(host->clk); 1163 + ret = clk_prepare(host->clk); 1164 1164 if (ret) 1165 1165 goto clk_free; 1166 + 1167 + ret = clk_enable(host->clk); 1168 + if (ret) 1169 + goto clk_unprep; 1166 1170 1167 1171 host->plat = plat; 1168 1172 host->variant = variant; ··· 1355 1351 iounmap(host->base); 1356 1352 clk_disable: 1357 1353 clk_disable(host->clk); 1354 + clk_unprep: 1355 + clk_unprepare(host->clk); 1358 1356 clk_free: 1359 1357 clk_put(host->clk); 1360 1358 host_free: ··· 1404 1398 1405 1399 iounmap(host->base); 1406 1400 clk_disable(host->clk); 1401 + clk_unprepare(host->clk); 1407 1402 clk_put(host->clk); 1408 1403 1409 1404 if (host->vcc)