* [PATCH] regulator: da9052: Include linux/of.h to fix build warning for of_match_ptr
@ 2019-03-16 1:50 Axel Lin
2019-03-18 11:55 ` Steve Twiss
0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2019-03-16 1:50 UTC (permalink / raw)
To: Mark Brown
Cc: Steve Twiss, Support Opensource, Liam Girdwood, linux-kernel, Axel Lin
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>
---
drivers/regulator/da9052-regulator.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/regulator/da9052-regulator.c b/drivers/regulator/da9052-regulator.c
index cefa3558236d..d272cd040f79 100644
--- a/drivers/regulator/da9052-regulator.c
+++ b/drivers/regulator/da9052-regulator.c
@@ -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>
--
2.17.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: [PATCH] regulator: da9052: Include linux/of.h to fix build warning for of_match_ptr
2019-03-16 1:50 [PATCH] regulator: da9052: Include linux/of.h to fix build warning for of_match_ptr Axel Lin
@ 2019-03-18 11:55 ` Steve Twiss
0 siblings, 0 replies; 2+ messages in thread
From: Steve Twiss @ 2019-03-18 11:55 UTC (permalink / raw)
To: Axel Lin, Mark Brown
Cc: Steve Twiss, Support Opensource, Liam Girdwood, linux-kernel
Hi Axel,
On 16 March 2019 01:51, Axel Lin wrote:
> To: Mark Brown <broonie@kernel.org>
> 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.
>
> Reported-by: kbuild test robot <lkp@intel.com>
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
Thanks!
Acked-by: Steve Twiss <stwiss.opensource@diasemi.com>
Regards,
Steve
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-03-18 11:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-16 1:50 [PATCH] regulator: da9052: Include linux/of.h to fix build warning for of_match_ptr Axel Lin
2019-03-18 11:55 ` Steve Twiss
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®