diff options
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r-- | drivers/mtd/nand/mxc_nand.c | 2 | ||||
-rw-r--r-- | drivers/mtd/nand/r852.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c index 4edea7f4462f..9dfdb06c508b 100644 --- a/drivers/mtd/nand/mxc_nand.c +++ b/drivers/mtd/nand/mxc_nand.c | |||
@@ -396,7 +396,7 @@ static void wait_op_done(struct mxc_nand_host *host, int useirq) | |||
396 | 396 | ||
397 | if (useirq) { | 397 | if (useirq) { |
398 | if (!host->devtype_data->check_int(host)) { | 398 | if (!host->devtype_data->check_int(host)) { |
399 | INIT_COMPLETION(host->op_completion); | 399 | reinit_completion(&host->op_completion); |
400 | irq_control(host, 1); | 400 | irq_control(host, 1); |
401 | wait_for_completion(&host->op_completion); | 401 | wait_for_completion(&host->op_completion); |
402 | } | 402 | } |
diff --git a/drivers/mtd/nand/r852.c b/drivers/mtd/nand/r852.c index 9dcf02d22aa8..325930db3f04 100644 --- a/drivers/mtd/nand/r852.c +++ b/drivers/mtd/nand/r852.c | |||
@@ -181,7 +181,7 @@ static void r852_do_dma(struct r852_device *dev, uint8_t *buf, int do_read) | |||
181 | /* Set dma direction */ | 181 | /* Set dma direction */ |
182 | dev->dma_dir = do_read; | 182 | dev->dma_dir = do_read; |
183 | dev->dma_stage = 1; | 183 | dev->dma_stage = 1; |
184 | INIT_COMPLETION(dev->dma_done); | 184 | reinit_completion(&dev->dma_done); |
185 | 185 | ||
186 | dbg_verbose("doing dma %s ", do_read ? "read" : "write"); | 186 | dbg_verbose("doing dma %s ", do_read ? "read" : "write"); |
187 | 187 | ||