]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcaf598d14bf93d4cd9e5bcf70964d553e454c1a0
tree2885f21e1af82cf77a8e1838199c3a7196aaf621
parent09484b68ef27f745a22bb1b93ad498e1f2baccc7
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