aboutsummaryrefslogtreecommitdiff
path: root/drivers/i2c/designware_i2c.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-01-23 11:48:06 -0700
committerHeiko Schocher <hs@denx.de>2020-01-27 07:18:46 +0100
commitafb88651a689aa0aed67c4cf439f1dc0d8803d5a (patch)
tree8772d96cd41788d4484f283fa976d4b47b723adf /drivers/i2c/designware_i2c.c
parent25eb0fb667dc64cb819905deccccbb36908e5bd6 (diff)
downloadu-boot-afb88651a689aa0aed67c4cf439f1dc0d8803d5a.zip
u-boot-afb88651a689aa0aed67c4cf439f1dc0d8803d5a.tar.gz
u-boot-afb88651a689aa0aed67c4cf439f1dc0d8803d5a.tar.bz2
i2c: designware_i2c: Include clk.h in the header file
We use struct clk here so really should include this header file to avoid build errors. Also switch the order of clk.h in the C file to match the required code style. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Ley Foon Tan <ley.foon.tan@intel.com> Reviewed-by: Jun Chen <ptchentw@gmail.com> Reviewed-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'drivers/i2c/designware_i2c.c')
-rw-r--r--drivers/i2c/designware_i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/designware_i2c.c b/drivers/i2c/designware_i2c.c
index b8cdd1c..138fc72 100644
--- a/drivers/i2c/designware_i2c.c
+++ b/drivers/i2c/designware_i2c.c
@@ -4,8 +4,8 @@
* Vipin Kumar, ST Micoelectronics, vipin.kumar@st.com.
*/
-#include <clk.h>
#include <common.h>
+#include <clk.h>
#include <dm.h>
#include <i2c.h>
#include <pci.h>