aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHuang Shijie <b32955@freescale.com>2013-08-27 05:29:05 -0400
committerNitin Garg <nitin.garg@freescale.com>2014-04-16 09:05:59 -0400
commiteb7c54a66af9c5d567dc28934e03ec8ed32171eb (patch)
treefb84bfd2898ecc0b9730dd256660a9d81337e2c2
parentad9880d3b2246b42047e106864cf8b990e4aa646 (diff)
mtd: gpmi: use DMA channel 0 for all the nand chips
We only have one DMA channel : the channel 0. Use DMA channel 0 to access all the nand chips. Signed-off-by: Huang Shijie <b32955@freescale.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
-rw-r--r--drivers/mtd/nand/gpmi-nand/gpmi-nand.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
index 86dc852539eb..86139ad85128 100644
--- a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
+++ b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
@@ -357,9 +357,8 @@ int common_nfc_set_geometry(struct gpmi_nand_data *this)
357 357
358struct dma_chan *get_dma_chan(struct gpmi_nand_data *this) 358struct dma_chan *get_dma_chan(struct gpmi_nand_data *this)
359{ 359{
360 int chipnr = this->current_chip; 360 /* We use the DMA channel 0 to access all the nand chips. */
361 361 return this->dma_chans[0];
362 return this->dma_chans[chipnr];
363} 362}
364 363
365/* Can we use the upper's buffer directly for DMA? */ 364/* Can we use the upper's buffer directly for DMA? */