Correct SPL uses of HW_WATCHDOG
authorSimon Glass <sjg@chromium.org>
Sun, 5 Feb 2023 22:40:07 +0000 (15:40 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 10 Feb 2023 12:41:39 +0000 (07:41 -0500)
This converts 2 usages of this option to the non-SPL form, since there is
no SPL_HW_WATCHDOG defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
drivers/crypto/aspeed/aspeed_hace.c
drivers/crypto/hash/hash_sw.c

index a1b0b9f564b1e53f97449ab029a7777ac74dc545..6b6c8fa658892e212ef1aa240ebe996e18b0bdb4 100644 (file)
@@ -288,7 +288,7 @@ static int aspeed_hace_digest_wd(struct udevice *dev, enum HASH_ALGO algo,
        if (rc)
                return rc;
 
-       if (CONFIG_IS_ENABLED(HW_WATCHDOG) || CONFIG_IS_ENABLED(WATCHDOG)) {
+       if (IS_ENABLED(CONFIG_HW_WATCHDOG) || CONFIG_IS_ENABLED(WATCHDOG)) {
                cur = ibuf;
                end = ibuf + ilen;
 
index 553c068010ca7a062c85a04ec20163143feb8de5..d8065d68ea486fbe70b414fae56af11ae0793e0a 100644 (file)
@@ -244,7 +244,7 @@ static int sw_hash_digest_wd(struct udevice *dev, enum HASH_ALGO algo,
        if (rc)
                return rc;
 
-       if (CONFIG_IS_ENABLED(HW_WATCHDOG) || CONFIG_IS_ENABLED(WATCHDOG)) {
+       if (IS_ENABLED(CONFIG_HW_WATCHDOG) || CONFIG_IS_ENABLED(WATCHDOG)) {
                cur = ibuf;
                end = ibuf + ilen;