From: Axel Lin Date: Sat, 16 Mar 2019 01:50:30 +0000 (+0800) Subject: regulator: da9052: Include linux/of.h to fix build warning for of_match_ptr X-Git-Tag: v5.2-rc1~174^2^2~101 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=9cff03710d403f8872d1225d36a4b69432ae007d;p=uclinux-h8%2Flinux.git 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 Signed-off-by: Axel Lin Acked-by: Steve Twiss Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/da9052-regulator.c b/drivers/regulator/da9052-regulator.c index 98d486372b8c..b90a7ac3f3de 100644 --- a/drivers/regulator/da9052-regulator.c +++ b/drivers/regulator/da9052-regulator.c @@ -19,10 +19,8 @@ #include #include #include -#ifdef CONFIG_OF #include #include -#endif #include #include