regulator: da9052: Include linux/of.h to fix build warning for of_match_ptr
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.
Reported-by kbuild test robot <[email protected]>
Signed-off-by Axel Lin <[email protected]>
--- drivers/regulator/da9052-regulator.c | 2 -- 1 file changed, 2 deletions(-)
drivers/regulator/da9052-regulator.c +0 -2
@@ -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
Hi Axel,
Quoted 9 lines · Axel Lin
To: Mark Brown <[email protected]>
Subject: [PATCH] regulator: da9052: Includelinux/of.hto fix build warning forof_match_ptrRemove #ifdef
CONFIG_OFguard solinux/of.hwill be included when !CONFIG_OF. This fixes build warnings when !CONFIG_OF.Reported-by kbuild test robot <[email protected]>Signed-off-by Axel Lin <[email protected]>
Thanks!
Acked-by Steve Twiss <[email protected]>
Regards,
Steve