summaryrefslogtreecommitdiff
path: root/drivers/regulator
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2019-01-30 17:07:21 +0800
committerMark Brown <broonie@kernel.org>2019-01-30 15:20:05 +0000
commit5358db547813eefe539676c28eab9462269d065a (patch)
treebc0ae087cddc39d8e1f525c249e23c38cc1daeb8 /drivers/regulator
parent0eca80bf07eb51cf7accf44dbf71547fd0bba5dd (diff)
regulator: max77650: Fix include files
This is a platform driver, no need to include linux/i2c.h. Include linux/of.h for of_match_ptr. Signed-off-by: Axel Lin <axel.lin@ingics.com> Reviewed-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/max77650-regulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/max77650-regulator.c b/drivers/regulator/max77650-regulator.c
index 474f2c02f2d5..5afb91400832 100644
--- a/drivers/regulator/max77650-regulator.c
+++ b/drivers/regulator/max77650-regulator.c
@@ -5,7 +5,7 @@
//
// Regulator driver for MAXIM 77650/77651 charger/power-supply.
-#include <linux/i2c.h>
+#include <linux/of.h>
#include <linux/mfd/max77650.h>
#include <linux/module.h>
#include <linux/platform_device.h>