]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: siemens: iot2050: Fix logical bug in PG1/PG2 detection
authorJan Kiszka <jan.kiszka@siemens.com>
Thu, 5 Oct 2023 04:37:25 +0000 (06:37 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 11 Oct 2023 17:22:27 +0000 (13:22 -0400)
This caused the wrong fdtfile to be set and was failing to apply M.2
settings.

Fixes: badaa1f6a7a9 ("boards: siemens: iot2050: Unify PG1 and PG2/M.2 configurations again")
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
board/siemens/iot2050/board.c

index 15f5310c7bf3850083bc69d771462f20044f1632..e35e55fb5de8018d658c948a8649675fc813aa4c 100644 (file)
@@ -160,7 +160,7 @@ static bool board_is_sr1(void)
        struct iot2050_info *info = IOT2050_INFO_DATA;
 
        return info->magic == IOT2050_INFO_MAGIC &&
-               strstr((char *)info->name, "-PG2") != NULL;
+               strstr((char *)info->name, "-PG2") == NULL;
 }
 
 static bool board_is_m2(void)