diff options
author | Huang Shijie <b32955@freescale.com> | 2010-11-01 14:15:25 +0800 |
---|---|---|
committer | Justin Waters <justin.waters@timesys.com> | 2010-12-13 16:10:42 -0500 |
commit | a534a03e0edeb2f9a98ddb18eacbfabaf409f015 (patch) | |
tree | c2f2f0c5db0acdd4f915cbb7eab2b88df0bf4fc2 | |
parent | d4879abe575fc981cf6395c7dafd0e9ff4351ed9 (diff) |
ENGR00133442 NAND : remove redundant clock operations
The nfc->begin() or nfc->end() will do the relative clock
opertions. Enable clock or disable clock here is redundant.
So just remove it.
Signed-off-by: Huang Shijie <b32955@freescale.com>
-rw-r--r-- | drivers/mtd/nand/gpmi-nfc/gpmi-nfc-mil.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/mtd/nand/gpmi-nfc/gpmi-nfc-mil.c b/drivers/mtd/nand/gpmi-nfc/gpmi-nfc-mil.c index 3893af8542cf..181cb477e6a4 100644 --- a/drivers/mtd/nand/gpmi-nfc/gpmi-nfc-mil.c +++ b/drivers/mtd/nand/gpmi-nfc/gpmi-nfc-mil.c @@ -374,7 +374,6 @@ static void mil_select_chip(struct mtd_info *mtd, int chip) struct gpmi_nfc_data *this = nand->priv; struct mil *mil = &this->mil; struct nfc_hal *nfc = this->nfc; - struct clk *clock = this->resources.clock; DEBUG(MTD_DEBUG_LEVEL2, "[gpmi_nfc select_chip] chip: %d\n", chip); @@ -382,13 +381,11 @@ static void mil_select_chip(struct mtd_info *mtd, int chip) if ((mil->current_chip < 0) && (chip >= 0)) { gpmi_nfc_start_event_trace("> mil_select_chip"); - clk_enable(clock); nfc->begin(this); gpmi_nfc_add_event("< mil_select_chip", -1); } else if ((mil->current_chip >= 0) && (chip < 0)) { gpmi_nfc_add_event("> mil_select_chip", 1); gpmi_nfc_add_event("> not disable clk", 1); - clk_disable(clock); nfc->end(this); gpmi_nfc_stop_event_trace("< mil_select_chip"); } else { |