mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
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>
This commit is contained in:
parent
d159d8b707
commit
a7c12d016a
1 changed files with 2 additions and 3 deletions
|
@ -357,9 +357,8 @@ int common_nfc_set_geometry(struct gpmi_nand_data *this)
|
|||
|
||||
struct dma_chan *get_dma_chan(struct gpmi_nand_data *this)
|
||||
{
|
||||
int chipnr = this->current_chip;
|
||||
|
||||
return this->dma_chans[chipnr];
|
||||
/* We use the DMA channel 0 to access all the nand chips. */
|
||||
return this->dma_chans[0];
|
||||
}
|
||||
|
||||
/* Can we use the upper's buffer directly for DMA? */
|
||||
|
|
Loading…
Reference in a new issue