diff options
author | Josh Wu <josh.wu@atmel.com> | 2013-08-06 23:36:09 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2013-08-30 16:34:27 -0400 |
commit | 9fe5f52c9eb2f2df2b6ffdab0100f4475fef2ba1 (patch) | |
tree | e4f82e1ee9d83753954a7af91e5a0618164e2e37 /drivers/mtd/nand/atmel_nand.c | |
parent | 561775169ce289850670fdb4a7353b67a7095bfa (diff) |
mtd: atmel_nand: fix the warning when CONFIG_OF is not defined
This patch fix following warning:
drivers/mtd/nand/atmel_nand.c:2007: warning: 'atmel_nand_nfc_match' defined but not used
This patch add '#if defined(CONFIG_OF)' block to guard around the definition
of atmel_nand_nfc_match, in order to avoid the warning when the kernel is
configured without DT support.
Signed-off-by: Josh Wu <josh.wu@atmel.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/nand/atmel_nand.c')
-rw-r--r-- | drivers/mtd/nand/atmel_nand.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c index 65b302cf9f8a..ddcd575b2823 100644 --- a/drivers/mtd/nand/atmel_nand.c +++ b/drivers/mtd/nand/atmel_nand.c | |||
@@ -2251,10 +2251,12 @@ static int atmel_nand_nfc_probe(struct platform_device *pdev) | |||
2251 | return 0; | 2251 | return 0; |
2252 | } | 2252 | } |
2253 | 2253 | ||
2254 | #if defined(CONFIG_OF) | ||
2254 | static struct of_device_id atmel_nand_nfc_match[] = { | 2255 | static struct of_device_id atmel_nand_nfc_match[] = { |
2255 | { .compatible = "atmel,sama5d3-nfc" }, | 2256 | { .compatible = "atmel,sama5d3-nfc" }, |
2256 | { /* sentinel */ } | 2257 | { /* sentinel */ } |
2257 | }; | 2258 | }; |
2259 | #endif | ||
2258 | 2260 | ||
2259 | static struct platform_driver atmel_nand_nfc_driver = { | 2261 | static struct platform_driver atmel_nand_nfc_driver = { |
2260 | .driver = { | 2262 | .driver = { |