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>
This commit is contained in:
parent
65e5a0e18e
commit
733daa52b8
|
@ -111,11 +111,11 @@ static int use_dma = 1;
|
||||||
module_param(use_dma, bool, 0);
|
module_param(use_dma, bool, 0);
|
||||||
MODULE_PARM_DESC(use_dma, "enable/disable use of DMA");
|
MODULE_PARM_DESC(use_dma, "enable/disable use of DMA");
|
||||||
#else
|
#else
|
||||||
const int use_dma;
|
static const int use_dma;
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
const int use_prefetch;
|
const int use_prefetch;
|
||||||
const int use_dma;
|
static const int use_dma;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct omap_nand_info {
|
struct omap_nand_info {
|
||||||
|
|
Loading…
Reference in New Issue