From patchwork Wed Oct 19 14:55:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Ogness X-Patchwork-Id: 5630 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp378003wrs; Wed, 19 Oct 2022 08:08:16 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4np2FcPU/xbYw8iBeSGDqItfjMl5gWreGgvWw3zqhBQkjUy2VGVYy+FD2Ens0UTUQ86f6f X-Received: by 2002:a17:907:3e02:b0:782:1267:f2c8 with SMTP id hp2-20020a1709073e0200b007821267f2c8mr7048848ejc.585.1666192095650; Wed, 19 Oct 2022 08:08:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666192095; cv=none; d=google.com; s=arc-20160816; b=LICgvLCLLCht0pDch3ZHW4qzTKNlaIrBOSJQtBI/DDx1OGTgpczPPxrbehrjJV/HqG 6EqdWfWZkMPgL372skAlxAxERFxO9eY4MilgNjxA8lZU1RbyO2NsNDs63YbLZIm51kNC mDofct6OseZDX8mgW3mOhpZFyNgAjdlbc3YqbVIeIbmHJoHI35EEGB+9B2WyeAqyMMlO gqCYczdf0hNRWhTebzM35JalBt8WHjEPdaaMtHGJpc3J8X9+2CJx1pGwakXFaht4vXJe CE0wIANL48AR/jI2KCGInqX4d2GyDdA3zYVPsYR+kE8aC0Wkt6C3HmkJLSZRiPoHJp2B mDvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:dkim-signature :dkim-signature:from; bh=ECvJGB97Hla1u507jwp5akWm1qCQ1lChgjmZWmbHvAU=; b=ho4Wz9/SwcGhznWt42Mpu9P2WnO/Vblg0CTwu2TcxfXp/cN1dREnBplxW0myby2BE9 4awgWRd30zzzi7Lb2Tqu1cmxfa6PK6PhomY8JCmw4nw0BqG/LKCTNRrSi/1ewLA/g20q 042TZWy62ZryujJk7GJYlj/M83DS8G/5JNVkknUJBbQBONGMmFeZn7V+5E3X0/7OiIwY qe/xy410GiVXS/yX6aL6D08uuwYKt9QRQfqeutR3A7XZZau+lJs+2+psM5/MNq5sCu9G chSdPYBcuBtuAcAI++MRG+0llWUKi48B6wr7m1CI2GOeiqSR39aAkW+nu2cLKLGAJIb1 0e+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=U0BupZGC; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q13-20020a170906388d00b0078d4b9428cdsi12076912ejd.389.2022.10.19.08.07.46; Wed, 19 Oct 2022 08:08:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=U0BupZGC; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231703AbiJSPFX (ORCPT + 99 others); Wed, 19 Oct 2022 11:05:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232122AbiJSPEG (ORCPT ); Wed, 19 Oct 2022 11:04:06 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1153D1C5A5F; Wed, 19 Oct 2022 07:58:33 -0700 (PDT) From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1666191369; 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=ECvJGB97Hla1u507jwp5akWm1qCQ1lChgjmZWmbHvAU=; b=U0BupZGCQHaRq+D5r1dZHhQ+O1tvmXp1DO3geOOs8K5K2OV5M7k0FFEhZuxAaivxGr3jDh LfFdNYEVY3ONqrvO31yQDmC4pv9lZbZ65u9VWYnvToQk3eYero1RZj02ZbuD6ghbDhttP0 lJA7ZTAiSL9vkXIVlIyBZZR4P+kilPLa8KiUKPFUDOhCgL35CEuVqTijttmO8iVFoUk9ik 0QsrUBkBSsE14vhvOIsyklFwXFJO8kecQ310Ish2cbJIx3/4N2ekjBu0ZcTA+w6OhfiRcy m3ozY+le97N9+MO4n35Tyllx9o4l3z7cTXJQyGh2O7btDGrwSYIhS/VdcnmDdQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1666191369; 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=ECvJGB97Hla1u507jwp5akWm1qCQ1lChgjmZWmbHvAU=; b=GI/hKiJLWVa+vepqZzJ+pH7neoD0sTcrbTqVtFMsZA/DipeGp5quDMaKAppqq2BiIO9vW2 5J+fk9L/z5Q+9zDg== To: Petr Mladek Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Alim Akhtar , Greg Kroah-Hartman , Jiri Slaby , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-serial@vger.kernel.org Subject: [PATCH printk v2 14/38] tty: serial: samsung_tty: use console_is_enabled() Date: Wed, 19 Oct 2022 17:01:36 +0206 Message-Id: <20221019145600.1282823-15-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 X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,INVALID_DATE_TZ_ABSURD, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747129042941561385?= X-GMAIL-MSGID: =?utf-8?q?1747129042941561385?= Replace (console->flags & CON_ENABLED) usage with console_is_enabled(). Signed-off-by: John Ogness Reviewed-by: Greg Kroah-Hartman Reviewed-by: Petr Mladek --- drivers/tty/serial/samsung_tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/samsung_tty.c b/drivers/tty/serial/samsung_tty.c index 77d1363029f5..8142a0e53ffa 100644 --- a/drivers/tty/serial/samsung_tty.c +++ b/drivers/tty/serial/samsung_tty.c @@ -1732,7 +1732,7 @@ static void __init s3c24xx_serial_register_console(void) static void s3c24xx_serial_unregister_console(void) { - if (s3c24xx_serial_console.flags & CON_ENABLED) + if (console_is_enabled(&s3c24xx_serial_console)) unregister_console(&s3c24xx_serial_console); }