Merge tag 'u-boot-atmel-fixes-2020.07-a' of https://gitlab.denx.de/u-boot/custodians...
[oweals/u-boot.git] / drivers / adc / rockchip-saradc.c
index a2856db497dd0b896b6368080b350fbd09aa9b1d..561740f63b5fa5632ca159e3883e38e6ffdbce35 100644 (file)
@@ -1,8 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * (C) Copyright 2017, Fuzhou Rockchip Electronics Co., Ltd
  *
- * SPDX-License-Identifier:    GPL-2.0+
- *
  * Rockchip SARADC driver for U-Boot
  */
 
@@ -12,6 +11,8 @@
 #include <dm.h>
 #include <errno.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
+#include <linux/err.h>
 
 #define SARADC_CTRL_CHN_MASK           GENMASK(2, 0)
 #define SARADC_CTRL_POWER_CTRL         BIT(3)