aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/r852.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2010-03-01 04:21:06 -0500
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-03-08 21:33:19 -0500
commitada496578850cb063ccf64d43a293cfcc9d32bf8 (patch)
treeb959951498645716c3249a314145fbd39a1c3e34 /drivers/mtd/nand/r852.c
parentb2aaf7a2b476820cf5fd7738e8641ed88046acf5 (diff)
mtd: nand: r852: fix name space clash
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>
Diffstat (limited to 'drivers/mtd/nand/r852.c')
-rw-r--r--drivers/mtd/nand/r852.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/mtd/nand/r852.c b/drivers/mtd/nand/r852.c
index 96db476ce3ed..f5a0bc7addea 100644
--- a/drivers/mtd/nand/r852.c
+++ b/drivers/mtd/nand/r852.c
@@ -13,15 +13,16 @@
13#include <linux/workqueue.h> 13#include <linux/workqueue.h>
14#include <linux/interrupt.h> 14#include <linux/interrupt.h>
15#include <linux/pci_ids.h> 15#include <linux/pci_ids.h>
16#include <linux/delay.h>
16#include <asm/byteorder.h> 17#include <asm/byteorder.h>
17#include <linux/sched.h> 18#include <linux/sched.h>
18#include "sm_common.h" 19#include "sm_common.h"
19#include "r852.h" 20#include "r852.h"
20 21
21 22
22static int enable_dma = 1; 23static int r852_enable_dma = 1;
23module_param(enable_dma, bool, S_IRUGO); 24module_param(r852_enable_dma, bool, S_IRUGO);
24MODULE_PARM_DESC(enable_dma, "Enable usage of the DMA (default)"); 25MODULE_PARM_DESC(r852_enable_dma, "Enable usage of the DMA (default)");
25 26
26static int debug; 27static int debug;
27module_param(debug, int, S_IRUGO | S_IWUSR); 28module_param(debug, int, S_IRUGO | S_IWUSR);
@@ -75,7 +76,7 @@ static void r852_dma_test(struct r852_device *dev)
75 if (!dev->dma_usable) 76 if (!dev->dma_usable)
76 message("Non dma capable device detected, dma disabled"); 77 message("Non dma capable device detected, dma disabled");
77 78
78 if (!enable_dma) { 79 if (!r852_enable_dma) {
79 message("disabling dma on user request"); 80 message("disabling dma on user request");
80 dev->dma_usable = 0; 81 dev->dma_usable = 0;
81 } 82 }