]> git.karo-electronics.de Git - karo-tx-linux.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)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Wed, 7 Aug 2013 06:27:55 +0000 (09:27 +0300)
commit816462dc4141156607157dbc998cc7ab977f3c96
tree4f1b09aec73df8df96db8cb3d6fdd8a84e1c8b8f
parente4ce393ef57c2f06e0276c0cde45bf466f5e3115
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 kernel is configurated
as non-dt supported.

Signed-off-by: Josh Wu <josh.wu@atmel.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/nand/atmel_nand.c