mfd: max8997: Use "IS_ENABLED(CONFIG_OF)" for DT code.
authorManish Badarkhe <badarkhe.manish@gmail.com>
Sun, 22 Dec 2013 17:48:49 +0000 (23:18 +0530)
committerLee Jones <lee.jones@linaro.org>
Tue, 21 Jan 2014 08:28:58 +0000 (08:28 +0000)
commit01c3f110f3e2557212925c041d961816a4c6fc63
tree163cde728bc8b5eb26ebc99ba3da9825d64f72cf
parent754fa7bc9852f17d3c79b93747b643e1665ce0de
mfd: max8997: Use "IS_ENABLED(CONFIG_OF)" for DT code.

Instead of "#if define CONFIG_OF" use "IS_ENABLED(CONFIG_OF)"
option for DT code to avoid if-deffery in code.

Signed-off-by: Manish Badarkhe <badarkhe.manish@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/max8997.c