Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 281949
b: refs/heads/master
c: f1f802c
h: refs/heads/master
i:
  281947: 487698c
v: v3
  • Loading branch information
Shawn Guo committed Dec 28, 2011
1 parent a5ed90f commit 26f77af
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: efdfc52c0470fb650cb2ee44cf030ec04e97b954
refs/heads/master: f1f802c9026da6774a72963178ff7435f539fb09
12 changes: 6 additions & 6 deletions trunk/drivers/mtd/nand/gpmi-nand/gpmi-lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ int gpmi_init(struct gpmi_nand_data *this)
struct resources *r = &this->resources;
int ret;

ret = clk_enable(r->clock);
ret = clk_prepare_enable(r->clock);
if (ret)
goto err_out;
ret = gpmi_reset_block(r->gpmi_regs, false);
Expand All @@ -146,7 +146,7 @@ int gpmi_init(struct gpmi_nand_data *this)
/* Select BCH ECC. */
writel(BM_GPMI_CTRL1_BCH_MODE, r->gpmi_regs + HW_GPMI_CTRL1_SET);

clk_disable(r->clock);
clk_disable_unprepare(r->clock);
return 0;
err_out:
return ret;
Expand Down Expand Up @@ -202,7 +202,7 @@ int bch_set_geometry(struct gpmi_nand_data *this)
ecc_strength = bch_geo->ecc_strength >> 1;
page_size = bch_geo->page_size;

ret = clk_enable(r->clock);
ret = clk_prepare_enable(r->clock);
if (ret)
goto err_out;

Expand All @@ -229,7 +229,7 @@ int bch_set_geometry(struct gpmi_nand_data *this)
writel(BM_BCH_CTRL_COMPLETE_IRQ_EN,
r->bch_regs + HW_BCH_CTRL_SET);

clk_disable(r->clock);
clk_disable_unprepare(r->clock);
return 0;
err_out:
return ret;
Expand Down Expand Up @@ -704,7 +704,7 @@ void gpmi_begin(struct gpmi_nand_data *this)
int ret;

/* Enable the clock. */
ret = clk_enable(r->clock);
ret = clk_prepare_enable(r->clock);
if (ret) {
pr_err("We failed in enable the clk\n");
goto err_out;
Expand Down Expand Up @@ -773,7 +773,7 @@ void gpmi_begin(struct gpmi_nand_data *this)
void gpmi_end(struct gpmi_nand_data *this)
{
struct resources *r = &this->resources;
clk_disable(r->clock);
clk_disable_unprepare(r->clock);
}

/* Clears a BCH interrupt. */
Expand Down

0 comments on commit 26f77af

Please sign in to comment.