diff options
author | Ezequiel Garcia <ezequiel.garcia@free-electrons.com> | 2013-08-12 13:14:57 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2013-08-30 16:35:01 -0400 |
commit | 57ff88f0f961348a1dec024d611ec7e281510529 (patch) | |
tree | 5b03b9cc72bf4ff367b379d200ae0bb76df99511 /drivers/mtd/nand/pxa3xx_nand.c | |
parent | f4db2e3a3315019c419a7ee8ebaf5d8b361be791 (diff) |
mtd: nand: pxa3xx: Add __maybe_unused keyword to enable_int()
Now that we have added ARCH_HAS_DMA conditional the function
enable_int() may be unused. Declare it as __maybe_unused,
in order to remove the following warning, when the function is not used:
drivers/mtd/nand//pxa3xx_nand.c:343:24: warning: 'enable_int' defined
but not used [-Wunused-function]
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Tested-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/nand/pxa3xx_nand.c')
-rw-r--r-- | drivers/mtd/nand/pxa3xx_nand.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c index ce343bfd0d65..d14933c3a75d 100644 --- a/drivers/mtd/nand/pxa3xx_nand.c +++ b/drivers/mtd/nand/pxa3xx_nand.c | |||
@@ -348,7 +348,8 @@ static void pxa3xx_nand_stop(struct pxa3xx_nand_info *info) | |||
348 | nand_writel(info, NDSR, NDSR_MASK); | 348 | nand_writel(info, NDSR, NDSR_MASK); |
349 | } | 349 | } |
350 | 350 | ||
351 | static void enable_int(struct pxa3xx_nand_info *info, uint32_t int_mask) | 351 | static void __maybe_unused |
352 | enable_int(struct pxa3xx_nand_info *info, uint32_t int_mask) | ||
352 | { | 353 | { |
353 | uint32_t ndcr; | 354 | uint32_t ndcr; |
354 | 355 | ||