diff options
author | G, Manjunath Kondaiah <manjugk@ti.com> | 2010-10-05 17:56:56 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2010-10-24 19:57:33 -0400 |
commit | 733daa52b8d358e7c18be7fb9f82afc0619408f4 (patch) | |
tree | 7a35b8560a3cda4b7bd16b0166624ac19db8e8bb /drivers | |
parent | 65e5a0e18e5fb5bc6cfabd8ef4b9fc1c8569ba62 (diff) |
mtd: omap2: fix static declaration warning
This patch fixes sparse warning for static declaration of variable "use_dma"
drivers/mtd/nand/omap2.c:114:11: warning: symbol 'use_dma' was not declared. Should it be static?
Signed-off-by: G, Manjunath Kondaiah <manjugk@ti.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mtd/nand/omap2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c index 133d51528f8..439e80d78ed 100644 --- a/drivers/mtd/nand/omap2.c +++ b/drivers/mtd/nand/omap2.c | |||
@@ -111,11 +111,11 @@ static int use_dma = 1; | |||
111 | module_param(use_dma, bool, 0); | 111 | module_param(use_dma, bool, 0); |
112 | MODULE_PARM_DESC(use_dma, "enable/disable use of DMA"); | 112 | MODULE_PARM_DESC(use_dma, "enable/disable use of DMA"); |
113 | #else | 113 | #else |
114 | const int use_dma; | 114 | static const int use_dma; |
115 | #endif | 115 | #endif |
116 | #else | 116 | #else |
117 | const int use_prefetch; | 117 | const int use_prefetch; |
118 | const int use_dma; | 118 | static const int use_dma; |
119 | #endif | 119 | #endif |
120 | 120 | ||
121 | struct omap_nand_info { | 121 | struct omap_nand_info { |