diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2010-03-01 04:21:06 -0500 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2010-03-08 21:33:19 -0500 |
commit | ada496578850cb063ccf64d43a293cfcc9d32bf8 (patch) | |
tree | b959951498645716c3249a314145fbd39a1c3e34 | |
parent | b2aaf7a2b476820cf5fd7738e8641ed88046acf5 (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>
-rw-r--r-- | drivers/mtd/nand/r852.c | 9 |
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 | ||
22 | static int enable_dma = 1; | 23 | static int r852_enable_dma = 1; |
23 | module_param(enable_dma, bool, S_IRUGO); | 24 | module_param(r852_enable_dma, bool, S_IRUGO); |
24 | MODULE_PARM_DESC(enable_dma, "Enable usage of the DMA (default)"); | 25 | MODULE_PARM_DESC(r852_enable_dma, "Enable usage of the DMA (default)"); |
25 | 26 | ||
26 | static int debug; | 27 | static int debug; |
27 | module_param(debug, int, S_IRUGO | S_IWUSR); | 28 | module_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 | } |