stm32mp1: Fix warnings when compiling with W=1
[oweals/u-boot.git] / arch / arm / mach-stm32mp / cpu.c
index d4f2ea821a6234f5214ee07182a851979ba23293..10190f40d4eb32fe9513eeb9d71c948fb00ecda1 100644 (file)
@@ -361,7 +361,7 @@ static void setup_boot_mode(void)
        u32 boot_ctx = readl(TAMP_BOOT_CONTEXT);
        u32 boot_mode =
                (boot_ctx & TAMP_BOOT_MODE_MASK) >> TAMP_BOOT_MODE_SHIFT;
-       int instance = (boot_mode & TAMP_BOOT_INSTANCE_MASK) - 1;
+       unsigned int instance = (boot_mode & TAMP_BOOT_INSTANCE_MASK) - 1;
        u32 forced_mode = (boot_ctx & TAMP_BOOT_FORCED_MASK);
        struct udevice *dev;
        int alias;