summaryrefslogtreecommitdiffstats
path: root/drivers/power/regulator/gpio-regulator.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-07-19 10:15:44 -0600
committerTom Rini <trini@konsulko.com>2020-08-03 22:19:54 -0400
commitad2f4ac39b13883e6bc1595137e61a4679906e42 (patch)
treeb76ec8e1a419a48cb618929c60d2bde47c92fd48 /drivers/power/regulator/gpio-regulator.c
parente1e10f29f9b5739b39b08b0c0040ec0cb315f3d7 (diff)
downloadu-boot-ad2f4ac39b13883e6bc1595137e61a4679906e42.tar.gz
u-boot-ad2f4ac39b13883e6bc1595137e61a4679906e42.tar.xz
u-boot-ad2f4ac39b13883e6bc1595137e61a4679906e42.zip
power: Tidy up inclusion of regulator_common.h
This file should not include common.h and dm.h so remove them. Also move the inclusion of this file to after the normal includes. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'drivers/power/regulator/gpio-regulator.c')
-rw-r--r--drivers/power/regulator/gpio-regulator.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/power/regulator/gpio-regulator.c b/drivers/power/regulator/gpio-regulator.c
index cf3fbae79d..947f812d09 100644
--- a/drivers/power/regulator/gpio-regulator.c
+++ b/drivers/power/regulator/gpio-regulator.c
@@ -4,7 +4,6 @@
* Keerthy <j-keerthy@ti.com>
*/
-#include "regulator_common.h"
#include <common.h>
#include <fdtdec.h>
#include <errno.h>
@@ -15,6 +14,8 @@
#include <power/pmic.h>
#include <power/regulator.h>
+#include "regulator_common.h"
+
#define GPIO_REGULATOR_MAX_STATES 2
DECLARE_GLOBAL_DATA_PTR;