aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-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 }