diff options
author | Mirko Vogt <mirko@openwrt.org> | 2008-12-13 01:54:56 +0000 |
---|---|---|
committer | Mirko Vogt <mirko@openwrt.org> | 2008-12-13 01:54:56 +0000 |
commit | c931b21161bf3d8a8cab193045b7deb52f914fb2 (patch) | |
tree | 6f4c70017b90c8dddb4845ce8a363d61268e016d /target/linux/s3c24xx/patches-2.6.26/1252-The-driver-should-be-checking-for-a-negative-error-c.patch | |
parent | 738e5ca558af0a32073576d9a361d0b5e6383e8e (diff) | |
download | upstream-c931b21161bf3d8a8cab193045b7deb52f914fb2.tar.gz upstream-c931b21161bf3d8a8cab193045b7deb52f914fb2.tar.bz2 upstream-c931b21161bf3d8a8cab193045b7deb52f914fb2.zip |
change prefix for kernelpatchbase 2.6.26
SVN-Revision: 13619
Diffstat (limited to 'target/linux/s3c24xx/patches-2.6.26/1252-The-driver-should-be-checking-for-a-negative-error-c.patch')
-rwxr-xr-x | target/linux/s3c24xx/patches-2.6.26/1252-The-driver-should-be-checking-for-a-negative-error-c.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/patches-2.6.26/1252-The-driver-should-be-checking-for-a-negative-error-c.patch b/target/linux/s3c24xx/patches-2.6.26/1252-The-driver-should-be-checking-for-a-negative-error-c.patch new file mode 100755 index 0000000000..ca57daf525 --- /dev/null +++ b/target/linux/s3c24xx/patches-2.6.26/1252-The-driver-should-be-checking-for-a-negative-error-c.patch @@ -0,0 +1,30 @@ +From 31ab776ee952e5ef6e0a21be276686b84187fcaa Mon Sep 17 00:00:00 2001 +From: Ben Dooks <ben-linux@fluff.org> +Date: Sun, 10 Aug 2008 09:29:14 +0100 +Subject: [PATCH] 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> +(cherry picked from commit 3886ff5f63f33c801ed3af265ac0df20d3a8dcf5) +--- + drivers/mmc/host/s3cmci.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/drivers/mmc/host/s3cmci.c b/drivers/mmc/host/s3cmci.c +index 107847a..ffba0f9 100644 +--- a/drivers/mmc/host/s3cmci.c ++++ b/drivers/mmc/host/s3cmci.c +@@ -1230,7 +1230,7 @@ static int s3cmci_probe(struct platform_device *pdev, int is2440) + s3c2410_gpio_cfgpin(host->pdata->gpio_wprotect, + S3C2410_GPIO_INPUT); + +- if (s3c2410_dma_request(host->dma, &s3cmci_dma_client, NULL)) { ++ if (s3c2410_dma_request(host->dma, &s3cmci_dma_client, NULL) < 0) { + dev_err(&pdev->dev, "unable to get DMA channel.\n"); + ret = -EBUSY; + goto probe_free_irq; +-- +1.5.6.3 + |