]> git.karo-electronics.de Git - karo-tx-linux.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>
Tue, 15 Oct 2013 20:56:36 +0000 (13:56 -0700)
commit60da2eb98851eabadcf5b528dc05c4a9917523af
tree1831176eb71db786d02b62c4f9f096c19cb3be25
parent13dbffa98f2d08260b1077e33888c6b457e3977e
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