]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: atmel_nand: fix the warning when CONFIG_OF is not defined
authorJosh Wu <josh.wu@atmel.com>
Wed, 7 Aug 2013 03:36:09 +0000 (11:36 +0800)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 30 Aug 2013 20:34:27 +0000 (21:34 +0100)
commit782334a3521aad797ab0ea272016e318c338ccc3
treee4f82e1ee9d83753954a7af91e5a0618164e2e37
parenta540c8c9986f19e608e4e805f305e20e2af7c1a4
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>
drivers/mtd/nand/atmel_nand.c