From: Huang Shijie Date: Tue, 27 Aug 2013 09:29:05 +0000 (+0800) Subject: mtd: gpmi: use DMA channel 0 for all the nand chips X-Git-Tag: MMI-PSA29.97-13-9~13292^2~31 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a7c12d016aa50762e4816308f46e2572ff9b5a01;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: Brian Norris --- diff --git a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c index 37508eb350d0..a5c60c4a62b5 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) 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? */