From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5B434C4332F for ; Wed, 19 Oct 2022 15:05:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231808AbiJSPF3 (ORCPT ); Wed, 19 Oct 2022 11:05:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232136AbiJSPEG (ORCPT ); Wed, 19 Oct 2022 11:04:06 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 935CB17A01B; Wed, 19 Oct 2022 07:58:35 -0700 (PDT) From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1666191368; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cANA2HumoCM7OV3714mDIj5DFLk1sHCXsW4mcU0VIIA=; b=UH0/62giDRacTgc6LWjPHq8aCEv5jkdDEzI/MA8Jup622emiuKoX7BLt8gRNRy9hdeFVnl EfYBYT1slOvZDZRzEYjnihQ/kb/pSC0sh+4hDZTe//uS3JVcMaASNn8iGoYSm1SazG2vWu rfA1AG3yElx0WcfZJJG2/V97uLL7zKyUS5JShA2ytxO5Fh7YQzi8/7WTxInUnWi5M73WCI j6zCLeQepuBdR7m/KMJa5r18w82h1KE96DJxw5pUNwJwUMgjkxcZ9XzvU07IH3AtxI4al8 qGXhSz0aOTdStNeIxhst5X4QNC5Ip1L8vaF0n5xzmGMrOsDxYBuv3gLeRDfPdA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1666191368; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cANA2HumoCM7OV3714mDIj5DFLk1sHCXsW4mcU0VIIA=; b=KQbMsoI8kPiCKg4t2VNCGQ7wjHS2dtIutEdNfXg4Ksb0sa7p4/aiaOHQFSJrrFe8FAeRCI P7dHuNzNimUGeVCQ== To: Petr Mladek Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Jiri Slaby , linux-serial@vger.kernel.org Subject: [PATCH printk v2 11/38] tty: serial: earlycon: use console_is_enabled() Date: Wed, 19 Oct 2022 17:01:33 +0206 Message-Id: <20221019145600.1282823-12-john.ogness@linutronix.de> In-Reply-To: <20221019145600.1282823-1-john.ogness@linutronix.de> References: <20221019145600.1282823-1-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replace (console->flags & CON_ENABLED) usage with console_is_enabled(). Signed-off-by: John Ogness --- drivers/tty/serial/earlycon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/earlycon.c b/drivers/tty/serial/earlycon.c index a5f380584cda..bdfb60da97bd 100644 --- a/drivers/tty/serial/earlycon.c +++ b/drivers/tty/serial/earlycon.c @@ -181,7 +181,7 @@ int __init setup_earlycon(char *buf) if (!buf || !buf[0]) return -EINVAL; - if (early_con.flags & CON_ENABLED) + if (console_is_enabled(&early_con)) return -EALREADY; again: @@ -253,7 +253,7 @@ int __init of_setup_earlycon(const struct earlycon_id *match, bool big_endian; u64 addr; - if (early_con.flags & CON_ENABLED) + if (console_is_enabled(&early_con)) return -EALREADY; spin_lock_init(&port->lock); -- 2.30.2