regulator: da9052: Include linux/of.h to fix build warning for of_match_ptr
authorAxel Lin <axel.lin@ingics.com>
Sat, 16 Mar 2019 01:50:30 +0000 (09:50 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 18 Mar 2019 12:00:24 +0000 (12:00 +0000)
Remove #ifdef CONFIG_OF guard so linux/of.h will be included when
!CONFIG_OF. This fixes build warnings when !CONFIG_OF.

Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Steve Twiss <stwiss.opensource@diasemi.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/da9052-regulator.c

index 98d486372b8cc641642e27af6ee6b42b8165fa3d..b90a7ac3f3de71f0dba862a0b84411921e6ee888 100644 (file)
 #include <linux/platform_device.h>
 #include <linux/regulator/driver.h>
 #include <linux/regulator/machine.h>
-#ifdef CONFIG_OF
 #include <linux/of.h>
 #include <linux/regulator/of_regulator.h>
-#endif
 
 #include <linux/mfd/da9052/da9052.h>
 #include <linux/mfd/da9052/reg.h>