mtd: atmel_nand: remove #if defined(CONFIG_OF) around OF-specific code
authorJosh Wu <josh.wu@atmel.com>
Wed, 18 Sep 2013 03:31:19 +0000 (11:31 +0800)
committerBrian Norris <computersforpeace@gmail.com>
Sun, 27 Oct 2013 23:27:03 +0000 (16:27 -0700)
commite9d8da807d818ce8e8399f528fd8efaac3eef36b
treeed6595a58129b96afb02c4e9be8c00e02c3ae495
parent86bc7bddc9bf7841372df5880805506228dbf4f4
mtd: atmel_nand: remove #if defined(CONFIG_OF) around OF-specific code

Since the of specific code are declared in <linux/of_mtd.h> regardless
of CONFIG_OF. Remove the #if defined(CONFIG_OF) guard and use an
IS_ENABLED(CONFIG_OF) instead.

Thanks to Ezequiel Garcia's for this protype.

Signed-off-by: Josh Wu <josh.wu@atmel.com>
Acked-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/atmel_nand.c