]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
mtd: nand: r852: fix name space clash
authorStephen Rothwell <sfr@canb.auug.org.au>
Mon, 1 Mar 2010 09:21:06 +0000 (20:21 +1100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Tue, 9 Mar 2010 02:33:19 +0000 (18:33 -0800)
and include delay.h for msleep().

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/r852.c

index 96db476ce3ed8e141c85d9bb5d4106c2ceb91dae..f5a0bc7addea524e1f442276a10912f9da4164ba 100644 (file)
 #include <linux/workqueue.h>
 #include <linux/interrupt.h>
 #include <linux/pci_ids.h>
+#include <linux/delay.h>
 #include <asm/byteorder.h>
 #include <linux/sched.h>
 #include "sm_common.h"
 #include "r852.h"
 
 
-static int enable_dma = 1;
-module_param(enable_dma, bool, S_IRUGO);
-MODULE_PARM_DESC(enable_dma, "Enable usage of the DMA (default)");
+static int r852_enable_dma = 1;
+module_param(r852_enable_dma, bool, S_IRUGO);
+MODULE_PARM_DESC(r852_enable_dma, "Enable usage of the DMA (default)");
 
 static int debug;
 module_param(debug, int, S_IRUGO | S_IWUSR);
@@ -75,7 +76,7 @@ static void r852_dma_test(struct r852_device *dev)
        if (!dev->dma_usable)
                message("Non dma capable device detected, dma disabled");
 
-       if (!enable_dma) {
+       if (!r852_enable_dma) {
                message("disabling dma on user request");
                dev->dma_usable = 0;
        }