pci: Make Rockchip PCIe voltage regulators optional
[oweals/u-boot.git] / drivers / adc / stm32-adc-core.c
index a9aa143bfe7bc0979355096a5ab55c0b41eaf808..31bbb6f9d68c934dfa57d9681a840372f53ab23e 100644 (file)
@@ -8,6 +8,8 @@
 
 #include <common.h>
 #include <asm/io.h>
+#include <dm/device_compat.h>
+#include <linux/bitops.h>
 #include <power/regulator.h>
 #include "stm32-adc-core.h"
 
@@ -60,7 +62,8 @@ static int stm32h7_adc_clk_sel(struct udevice *dev,
 {
        u32 ckmode, presc;
        unsigned long rate;
-       int i, div;
+       unsigned int i;
+       int div;
 
        /* stm32h7 bus clock is common for all ADC instances (mandatory) */
        if (!clk_valid(&common->bclk)) {