From patchwork Fri Jun 18 11:14:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Teresa Remmet X-Patchwork-Id: 1494240 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=temperror header.d=phytec.de header.i=@phytec.de header.a=rsa-sha256 header.s=a1 header.b=tnTPF2Cs; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G5xCK0M0Mz9sT6 for ; Fri, 18 Jun 2021 21:14:36 +1000 (AEST) 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) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 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_Roh=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 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_AUTOSTART. So use IS_ENABLED instead of CONFIG_IS_ENABLED to make watchdog working in spl again. Signed-off-by: Teresa Remmet Reviewed-by: Stefan Roese --- 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_watchdog(void) 4 * reset_period) / 4; } - if (!CONFIG_IS_ENABLED(WATCHDOG_AUTOSTART)) { + if (!IS_ENABLED(CONFIG_WATCHDOG_AUTOSTART)) { printf("WDT: Not starting\n"); return 0; }