Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 313576
b: refs/heads/master
c: 61c3b19
h: refs/heads/master
v: v3
  • Loading branch information
Prashant Gaikwad authored and Stephen Warren committed Jun 12, 2012
1 parent 0390b38 commit 60744d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: cb53417efc726f3c243eaaeb9fce1d15bda05521
refs/heads/master: 61c3b1971ad4c71c99919da949ac2043dfac8ee7
8 changes: 4 additions & 4 deletions trunk/drivers/staging/nvec/nvec.c
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ static void tegra_init_i2c_slave(struct nvec_chip *nvec)
{
u32 val;

clk_enable(nvec->i2c_clk);
clk_prepare_enable(nvec->i2c_clk);

tegra_periph_reset_assert(nvec->i2c_clk);
udelay(2);
Expand All @@ -695,14 +695,14 @@ static void tegra_init_i2c_slave(struct nvec_chip *nvec)

enable_irq(nvec->irq);

clk_disable(nvec->i2c_clk);
clk_disable_unprepare(nvec->i2c_clk);
}

static void nvec_disable_i2c_slave(struct nvec_chip *nvec)
{
disable_irq(nvec->irq);
writel(I2C_SL_NEWSL | I2C_SL_NACK, nvec->base + I2C_SL_CNFG);
clk_disable(nvec->i2c_clk);
clk_disable_unprepare(nvec->i2c_clk);
}

static void nvec_power_off(void)
Expand Down Expand Up @@ -812,7 +812,7 @@ static int __devinit tegra_nvec_probe(struct platform_device *pdev)

tegra_init_i2c_slave(nvec);

clk_enable(i2c_clk);
clk_prepare_enable(i2c_clk);


/* enable event reporting */
Expand Down

0 comments on commit 60744d7

Please sign in to comment.