summaryrefslogtreecommitdiffstats
path: root/drivers/regulator
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2021-05-18 13:48:43 +0200
committerMark Brown <broonie@kernel.org>2021-05-18 15:04:33 +0200
commit3799fa23afa4cac347739d5290df44a474a82a82 (patch)
tree0358c6926be5d900c8d7c1ac75e93314080d19f3 /drivers/regulator
parentMerge branch 'for-5.13' of https://git.kernel.org/pub/scm/linux/kernel/git/br... (diff)
downloadlinux-3799fa23afa4cac347739d5290df44a474a82a82.tar.xz
linux-3799fa23afa4cac347739d5290df44a474a82a82.zip
regulator: bd71815: Fix missing include files
Include linux/of.h and linux/gpio/consumer.h to fix below errors: error: implicit declaration of function ‘of_match_ptr’ error: implicit declaration of function ‘devm_gpiod_get_from_of_node’ Signed-off-by: Axel Lin <axel.lin@ingics.com> Reviewed-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com> Link: https://lore.kernel.org/r/20210518114843.1495152-1-axel.lin@ingics.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/bd71815-regulator.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/regulator/bd71815-regulator.c b/drivers/regulator/bd71815-regulator.c
index a4e8d5e36b40..a079efa80092 100644
--- a/drivers/regulator/bd71815-regulator.c
+++ b/drivers/regulator/bd71815-regulator.c
@@ -13,6 +13,8 @@
#include <linux/init.h>
#include <linux/err.h>
#include <linux/platform_device.h>
+#include <linux/of.h>
+#include <linux/gpio/consumer.h>
#include <linux/regulator/driver.h>
#include <linux/delay.h>
#include <linux/slab.h>