Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 313578
b: refs/heads/master
c: 0df1ed4
h: refs/heads/master
v: v3
  • Loading branch information
Prashant Gaikwad authored and Stephen Warren committed Jun 12, 2012
1 parent 286a2c8 commit 883bbd4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 65d2bdd343bd07c8de7df7352186bfe57994b5e7
refs/heads/master: 0df1ed4b12840f1d17b373ee5c05877c375ddc3e
12 changes: 6 additions & 6 deletions trunk/drivers/crypto/tegra-aes.c
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ static void aes_workqueue_handler(struct work_struct *work)
struct tegra_aes_dev *dd = aes_dev;
int ret;

ret = clk_enable(dd->aes_clk);
ret = clk_prepare_enable(dd->aes_clk);
if (ret)
BUG_ON("clock enable failed");

Expand All @@ -581,7 +581,7 @@ static void aes_workqueue_handler(struct work_struct *work)
ret = tegra_aes_handle_req(dd);
} while (!ret);

clk_disable(dd->aes_clk);
clk_disable_unprepare(dd->aes_clk);
}

static irqreturn_t aes_irq(int irq, void *dev_id)
Expand Down Expand Up @@ -673,7 +673,7 @@ static int tegra_aes_get_random(struct crypto_rng *tfm, u8 *rdata,
/* take mutex to access the aes hw */
mutex_lock(&aes_lock);

ret = clk_enable(dd->aes_clk);
ret = clk_prepare_enable(dd->aes_clk);
if (ret)
return ret;

Expand All @@ -700,7 +700,7 @@ static int tegra_aes_get_random(struct crypto_rng *tfm, u8 *rdata,
}

out:
clk_disable(dd->aes_clk);
clk_disable_unprepare(dd->aes_clk);
mutex_unlock(&aes_lock);

dev_dbg(dd->dev, "%s: done\n", __func__);
Expand Down Expand Up @@ -758,7 +758,7 @@ static int tegra_aes_rng_reset(struct crypto_rng *tfm, u8 *seed,

dd->flags = FLAGS_ENCRYPT | FLAGS_RNG;

ret = clk_enable(dd->aes_clk);
ret = clk_prepare_enable(dd->aes_clk);
if (ret)
return ret;

Expand Down Expand Up @@ -788,7 +788,7 @@ static int tegra_aes_rng_reset(struct crypto_rng *tfm, u8 *seed,
memcpy(dd->dt, dt, DEFAULT_RNG_BLK_SZ);

out:
clk_disable(dd->aes_clk);
clk_disable_unprepare(dd->aes_clk);
mutex_unlock(&aes_lock);

dev_dbg(dd->dev, "%s: done\n", __func__);
Expand Down

0 comments on commit 883bbd4

Please sign in to comment.