RE: [PATCH] regulator: da9052: Include linux/of.h to fix build warning for of_match_ptr

From: Steve Twiss
Date: Mon Mar 18 2019 - 07:55:18 EST


Hi Axel,

On 16 March 2019 01:51, Axel Lin wrote:

> To: Mark Brown <broonie@xxxxxxxxxx>
> 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@xxxxxxxxx>
> Signed-off-by: Axel Lin <axel.lin@xxxxxxxxxx>

Thanks!

Acked-by: Steve Twiss <stwiss.opensource@xxxxxxxxxxx>

Regards,
Steve