Skip to contentSkip to conversation

regulator: da9052: Include linux/of.h to fix build warning for of_match_ptr

PATCH In review Axel Lin 2 participants 2 messages Mar 16, 2019 – Mar 18, 2019

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 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.

---
 drivers/regulator/da9052-regulator.c | 2 --
 1 file changed, 2 deletions(-)
drivers/regulator/da9052-regulator.c +0 -2
index cefa3558236d..d272cd040f79 100644
@@ -19,10 +19,8 @@
 #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>
Signature · 1 line
2.17.1
Acked-by on v1 1/1
#1 lore raw

Hi Axel,

Quoted 9 lines · Axel Lin

To: Mark Brown <[email protected]>
Subject: [PATCH] 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.

Thanks!

Regards,
Steve