spi/omap-100k: Prepare and unprepare clocks
authorMark Brown <broonie@linaro.org>
Wed, 10 Jul 2013 15:09:22 +0000 (16:09 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 15 Jul 2013 10:39:31 +0000 (11:39 +0100)
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-omap-100k.c

index 691ef3f199ff7409cacee7538ad3a0293a4c2b92..3590dd43837bc56b471011ad935eac537ae4c195 100644 (file)
@@ -303,13 +303,13 @@ static int omap1_spi100k_setup(struct spi_device *spi)
 
        spi100k_open(spi->master);
 
-       clk_enable(spi100k->ick);
-       clk_enable(spi100k->fck);
+       clk_prepare_enable(spi100k->ick);
+       clk_prepare_enable(spi100k->fck);
 
        ret = omap1_spi100k_setup_transfer(spi, NULL);
 
-       clk_disable(spi100k->ick);
-       clk_disable(spi100k->fck);
+       clk_disable_unprepare(spi100k->ick);
+       clk_disable_unprepare(spi100k->fck);
 
        return ret;
 }
@@ -318,8 +318,8 @@ static int omap1_spi100k_prepare_hardware(struct spi_master *master)
 {
        struct omap1_spi100k *spi100k = spi_master_get_devdata(master);
 
-       clk_enable(spi100k->ick);
-       clk_enable(spi100k->fck);
+       clk_prepare_enable(spi100k->ick);
+       clk_prepare_enable(spi100k->fck);
 
        return 0;
 }
@@ -396,8 +396,8 @@ static int omap1_spi100k_unprepare_hardware(struct spi_master *master)
 {
        struct omap1_spi100k *spi100k = spi_master_get_devdata(master);
 
-       clk_disable(spi100k->ick);
-       clk_disable(spi100k->fck);
+       clk_disable_unprepare(spi100k->ick);
+       clk_disable_unprepare(spi100k->fck);
 
        return 0;
 }
This page took 0.026313 seconds and 5 git commands to generate.