]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3c352c4413b577f9337ccb0a48f05f3649ba23ff
treeed6595a58129b96afb02c4e9be8c00e02c3ae495
parent78a842012a1738641a371a54758ee027cd1c5be5
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