OSDN Git Service

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)
commit9cff03710d403f8872d1225d36a4b69432ae007d
tree2885f21e1af82cf77a8e1838199c3a7196aaf621
parentdb7ecb493cab3f27da72c6460991e1de9969f9b8
regulator: da9052: Include linux/of.h to fix build warning for of_match_ptr

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