Skip to content

Commit badfae4

Browse files
zhangqingmybroonie
authored andcommitted
spi: omap-uwire: Use clk_prepare_enable and clk_disable_unprepare
Convert clk_enable() to clk_prepare_enable() and clk_disable() to clk_disable_unprepare() respectively in the spi-omap-uwire.c. Signed-off-by: Qing Zhang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 510a230 commit badfae4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/spi/spi-omap-uwire.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ static void uwire_cleanup(struct spi_device *spi)
443443
static void uwire_off(struct uwire_spi *uwire)
444444
{
445445
uwire_write_reg(UWIRE_SR3, 0);
446-
clk_disable(uwire->ck);
446+
clk_disable_unprepare(uwire->ck);
447447
spi_master_put(uwire->bitbang.master);
448448
}
449449

@@ -475,7 +475,7 @@ static int uwire_probe(struct platform_device *pdev)
475475
spi_master_put(master);
476476
return status;
477477
}
478-
clk_enable(uwire->ck);
478+
clk_prepare_enable(uwire->ck);
479479

480480
if (cpu_is_omap7xx())
481481
uwire_idx_shift = 1;

0 commit comments

Comments
 (0)