Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3E6AEC49EA2 for ; Fri, 18 Jun 2021 11:14:35 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EF1B1611CC for ; Fri, 18 Jun 2021 11:14:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EF1B1611CC Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=phytec.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A959782B33; Fri, 18 Jun 2021 13:14:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=phytec.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=temperror (0-bit key; unprotected) header.d=phytec.de header.i=@phytec.de header.b="tnTPF2Cs"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 591E582B55; Fri, 18 Jun 2021 13:14:29 +0200 (CEST) Received: from mickerik.phytec.de (mickerik.phytec.de [195.145.39.210]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6669C82B33 for ; Fri, 18 Jun 2021 13:14:26 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=phytec.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=t.remmet@phytec.de DKIM-Signature: v=1; a=rsa-sha256; d=phytec.de; s=a1; c=relaxed/simple; q=dns/txt; i=@phytec.de; t=1624014866; x=1626606866; h=From:Sender:Reply-To:Subject:Date:Message-Id:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=vhvKs2HqGeBh9Iz5XXRNL6QWRjLSpLx27OcvICz2SVc=; b=tnTPF2CsM15Ldcj7QzQj2D0jfLp0VDK1q8LpebxgGSMcOmhqPyHFKJCqgUWOEyMu SaY06cXD9CbXycULxvTSCC89g6xKg6/sTqoE/wlEvyUmq5gzvJXPmLwkiafPe6HB k1fnjimPuGFuy/Lq3xmmIOpl4h1PTiGAZwURFKxQmHs=; X-AuditID: c39127d2-a77bc70000001c5e-73-60cc8012e772 Received: from idefix.phytec.de (Unknown_Domain [172.16.0.10]) by mickerik.phytec.de (PHYTEC Mail Gateway) with SMTP id CF.E6.07262.2108CC06; Fri, 18 Jun 2021 13:14:26 +0200 (CEST) Received: from augenblix3.phytec.de ([172.16.0.233]) by idefix.phytec.de (IBM Domino Release 9.0.1FP7) with ESMTP id 2021061813142589-993403 ; Fri, 18 Jun 2021 13:14:25 +0200 From: Teresa Remmet To: u-boot@lists.denx.de Cc: Stefan Roese , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Rasmus Villemoes Subject: [PATCH] drivers: watchdog: wdt-uclass: Use IS_ENABLED for WATCHDOG_AUTOSTART Date: Fri, 18 Jun 2021 11:14:25 +0000 Message-Id: <20210618111425.2647258-1-t.remmet@phytec.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 18.06.2021 13:14:26, Serialize by Router on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 18.06.2021 13:14:26 X-TNEFEvaluated: 1 Content-Transfer-Encoding: quoted-printable X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprMLMWRmVeSWpSXmKPExsWyRoCBS1eo4UyCwYHNvBYL9pxms7j52sHi 5LoPTBZv93ayO7B4zJt1gsVj06pONo+zd3YwesyY/YYxgCWKyyYlNSezLLVI3y6BK+P9hcuM Bc1sFQvvb2dsYGxk7WLk5JAQMJFYdPsVkM3FISSwjVGi++UNFgjnAqPEo4eHWUCq2AQ0JJ6u OM0EYosISEj86r/KCGIzC9RKtB6ZwtbFyMEhLBAq8fcmF0iYRUBVYumtv8wgNq+ApcSxVduh lslLzLz0nR0iLihxcuYTsF0SAlcYJfoONUAVCUmcXnyWGWK+tsSyha+ZJzDyzULSMwtJagEj 0ypGodzM5OzUosxsvYKMypLUZL2U1E2MwIA7PFH90g7GvjkehxiZOBgPMUpwMCuJ8HJmnkkQ 4k1JrKxKLcqPLyrNSS0+xCjNwaIkzruBtyRMSCA9sSQ1OzW1ILUIJsvEwSnVwDjXJMb04v4p k+4tEK78rs/y+MLWrsnTe7sMWY7yPJy+4XimgsLXBcYnP7OvlznFJq4+e8oNtf+9FwWunRdI UFl69/i8g9t6Mj96PG0xnOix62GXUMa175L78iINtBdwXVGSSvZKWiFo8/b7vbY7yqHLl7Cv YpH+wNe3tLz5qLtWoZOUSuyOw7OVWIozEg21mIuKEwHOVkSyJgIAAA== X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean There is no separate SPL/TPL config for WATCHDOG=5FAUTOSTART. So use IS=5FENABLED instead of CONFIG=5FIS=5FENABLED to make watchdog working in spl again. Signed-off-by: Teresa Remmet --- drivers/watchdog/wdt-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/wdt-uclass.c b/drivers/watchdog/wdt-uclass.c index 268713529604..f113a65fc187 100644 --- a/drivers/watchdog/wdt-uclass.c +++ b/drivers/watchdog/wdt-uclass.c @@ -51,7 +51,7 @@ int initr=5Fwatchdog(void) 4 * reset=5Fperiod) / 4; } =20 - if (!CONFIG=5FIS=5FENABLED(WATCHDOG=5FAUTOSTART)) { + if (!IS=5FENABLED(CONFIG=5FWATCHDOG=5FAUTOSTART)) { printf("WDT: Not starting\n"); return 0; } --=20 2.25.1