aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2008-06-30 17:40:33 -0400
committerPierre Ossman <drzeus@drzeus.cx>2008-07-15 08:14:47 -0400
commit3886ff5f63f33c801ed3af265ac0df20d3a8dcf5 (patch)
tree29b781d35f851b63fab1edda805e6baf66bc9254 /drivers/mmc
parent55d70f5a7b25800fc8376cdd81d42d6c201fa91d (diff)
MMC: S3C24XX: Fix s3c2410_dma_request() return code check.
The driver should be checking for a negative error code from s3c2410_dma_request(), not non-zero. Newer kernels now return the DMA channel number that was allocated by the request. Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/s3cmci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/s3cmci.c b/drivers/mmc/host/s3cmci.c
index aa9a8b44b5ea..8389107d599e 100644
--- a/drivers/mmc/host/s3cmci.c
+++ b/drivers/mmc/host/s3cmci.c
@@ -1215,7 +1215,7 @@ static int __devinit s3cmci_probe(struct platform_device *pdev, int is2440)
1215 s3c2410_gpio_cfgpin(host->pdata->gpio_wprotect, 1215 s3c2410_gpio_cfgpin(host->pdata->gpio_wprotect,
1216 S3C2410_GPIO_INPUT); 1216 S3C2410_GPIO_INPUT);
1217 1217
1218 if (s3c2410_dma_request(S3CMCI_DMA, &s3cmci_dma_client, NULL)) { 1218 if (s3c2410_dma_request(S3CMCI_DMA, &s3cmci_dma_client, NULL) < 0) {
1219 dev_err(&pdev->dev, "unable to get DMA channel.\n"); 1219 dev_err(&pdev->dev, "unable to get DMA channel.\n");
1220 ret = -EBUSY; 1220 ret = -EBUSY;
1221 goto probe_free_irq_cd; 1221 goto probe_free_irq_cd;