aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2014-01-28 15:45:38 -0500
committerVinod Koul <vinod.koul@intel.com>2014-01-29 07:08:57 -0500
commit15cec530e4bc7bed3f51cde8404f96fd28a8c7c5 (patch)
tree731235fab2ca0bef5ef782deeb8d1421cf39dbb4
parent6d05c9fabfdc8642b42a1000cd092b2a7543d85f (diff)
dmaengine: mmp_pdma: fix mismerge
The merge between 2b7f65b11d87f "mmp_pdma: Style neatening" and 8010dad55a0ab0 "dma: add dma_get_any_slave_channel(), for use in of_xlate()" caused a build error by leaving obsolete code in place: mmp_pdma.c: In function 'mmp_pdma_dma_xlate': mmp_pdma.c:909:31: error: 'candidate' undeclared mmp_pdma.c:912:3: error: label 'retry' used but not defined mmp_pdma.c:901:24: warning: unused variable 'c' [-Wunused-variable] This removes the extraneous lines. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r--drivers/dma/mmp_pdma.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/dma/mmp_pdma.c b/drivers/dma/mmp_pdma.c
index c1b7c3ac7676..b439679f4126 100644
--- a/drivers/dma/mmp_pdma.c
+++ b/drivers/dma/mmp_pdma.c
@@ -899,19 +899,11 @@ static struct dma_chan *mmp_pdma_dma_xlate(struct of_phandle_args *dma_spec,
899{ 899{
900 struct mmp_pdma_device *d = ofdma->of_dma_data; 900 struct mmp_pdma_device *d = ofdma->of_dma_data;
901 struct dma_chan *chan; 901 struct dma_chan *chan;
902 struct mmp_pdma_chan *c;
903 902
904 chan = dma_get_any_slave_channel(&d->device); 903 chan = dma_get_any_slave_channel(&d->device);
905 if (!chan) 904 if (!chan)
906 return NULL; 905 return NULL;
907 906
908 /* dma_get_slave_channel will return NULL if we lost a race between
909 * the lookup and the reservation */
910 chan = dma_get_slave_channel(candidate);
911
912 if (!chan)
913 goto retry;
914
915 to_mmp_pdma_chan(chan)->drcmr = dma_spec->args[0]; 907 to_mmp_pdma_chan(chan)->drcmr = dma_spec->args[0];
916 908
917 return chan; 909 return chan;