From: Josh Wu Date: Wed, 7 Aug 2013 03:36:09 +0000 (+0800) Subject: mtd: atmel_nand: fix the warning when CONFIG_OF is not defined X-Git-Tag: v3.12-rc1~82^2~67 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fe5f52c9eb2f2df2b6ffdab0100f4475fef2ba1;p=pandora-kernel.git 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 Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- Reading git-diff-tree failed