add support for target 3c24xx (more known as Openmoko GTA02 "Freerunner") and merge...
[openwrt.git] / target / linux / s3c24xx / patches / 0252-The-driver-should-be-checking-for-a-negative-error-c.patch
1 From 31ab776ee952e5ef6e0a21be276686b84187fcaa Mon Sep 17 00:00:00 2001
2 From: Ben Dooks <ben-linux@fluff.org>
3 Date: Sun, 10 Aug 2008 09:29:14 +0100
4 Subject: [PATCH] The driver should be checking for a negative error code from
5  s3c2410_dma_request(), not non-zero. Newer kernels now return
6  the DMA channel number that was allocated by the request.
7
8 Signed-off-by: Ben Dooks <ben-linux@fluff.org>
9 Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
10 (cherry picked from commit 3886ff5f63f33c801ed3af265ac0df20d3a8dcf5)
11 ---
12  drivers/mmc/host/s3cmci.c |    2 +-
13  1 files changed, 1 insertions(+), 1 deletions(-)
14
15 diff --git a/drivers/mmc/host/s3cmci.c b/drivers/mmc/host/s3cmci.c
16 index 107847a..ffba0f9 100644
17 --- a/drivers/mmc/host/s3cmci.c
18 +++ b/drivers/mmc/host/s3cmci.c
19 @@ -1230,7 +1230,7 @@ static int s3cmci_probe(struct platform_device *pdev, int is2440)
20                 s3c2410_gpio_cfgpin(host->pdata->gpio_wprotect,
21                                     S3C2410_GPIO_INPUT);
22  
23 -       if (s3c2410_dma_request(host->dma, &s3cmci_dma_client, NULL)) {
24 +       if (s3c2410_dma_request(host->dma, &s3cmci_dma_client, NULL) < 0) {
25                 dev_err(&pdev->dev, "unable to get DMA channel.\n");
26                 ret = -EBUSY;
27                 goto probe_free_irq;
28 -- 
29 1.5.6.3
30