]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
bootstd: cros: Correct condition for read method
authorSimon Glass <sjg@chromium.org>
Tue, 24 Oct 2023 18:17:37 +0000 (07:17 +1300)
committerTom Rini <trini@konsulko.com>
Wed, 1 Nov 2023 16:26:44 +0000 (12:26 -0400)
This has a typo which makes the method inoperable. Correct it so that
'bootflow read' works correctly for ChromeOS.

Signed-off-by: Simon Glass <sjg@chromium.org>
boot/bootmeth_cros.c

index 20e0b1e89c360168fa14eb12ba6b464fbbf61e0d..cd72db8250cefee70c46e92d5a6d526bb1763c1e 100644 (file)
@@ -406,7 +406,7 @@ static int cros_read_file(struct udevice *dev, struct bootflow *bflow,
        return -ENOSYS;
 }
 
-#if CONFIG_IS_ENABLED(BOOSTD_FULL)
+#if CONFIG_IS_ENABLED(BOOTSTD_FULL)
 static int cros_read_all(struct udevice *dev, struct bootflow *bflow)
 {
        int ret;
@@ -419,7 +419,7 @@ static int cros_read_all(struct udevice *dev, struct bootflow *bflow)
 
        return 0;
 }
-#endif /* BOOSTD_FULL */
+#endif /* BOOTSTD_FULL */
 
 static int cros_boot(struct udevice *dev, struct bootflow *bflow)
 {
@@ -458,9 +458,9 @@ static struct bootmeth_ops cros_bootmeth_ops = {
        .read_bootflow  = cros_read_bootflow,
        .read_file      = cros_read_file,
        .boot           = cros_boot,
-#if CONFIG_IS_ENABLED(BOOSTD_FULL)
+#if CONFIG_IS_ENABLED(BOOTSTD_FULL)
        .read_all       = cros_read_all,
-#endif /* BOOSTD_FULL */
+#endif /* BOOTSTD_FULL */
 };
 
 static const struct udevice_id cros_bootmeth_ids[] = {