Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp940562pxb; Wed, 3 Mar 2021 21:53:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJyRiY5LaBX6mweM/cigNuC3Pkdq7nyd12ehAZPAOkb5BnwmIHqJD+y/Z7+byJRWZ/tTMOGq X-Received: by 2002:a17:906:3b84:: with SMTP id u4mr2335509ejf.431.1614837191099; Wed, 03 Mar 2021 21:53:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614837191; cv=none; d=google.com; s=arc-20160816; b=rBzIzCiIgcJtKLJh3n0AzKowssd21PEN0bTkvGZK7DaDMegoAMBtsMOvFbzyhVCvZm 82Cv1XcbHL/6Jj311fSr686VsUGFO0JrsjoIVj/xPtet297MLJHFC/OPIzB8p2V80HJx 9MPmPK2IQa6CAvr0SAlIuxLsBePXULQCawuaRJTN4PCSjQmxW5ov6Hs4W6bRWdf337qf EgHStDcysgGd2O16cfISU8JCTHpNKll6Kp/9DvV++RLgXkNTKZsNMdFaFpvVltsXbEUW IvGXJzT80AX9eJBvPd9DFrppvWUNkkE3ERQhsx3PL2t+VaUs6wBqP66FHz3w/zyLIsgh 5lDA== 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:from; bh=YLlM+q8M4Xd99gB2+Dkfj1d3Vs2eQLXKe6AjdnWS+iM=; b=Ef09WHI1Ti2NyUTsm7kGKbZ3kM/dNky5/3g069zP3lw59+Pg1Q3W/qnS3pNHKjWKa7 YtyGkZUaBfDdeMJDliL4GEqpvV76LC08t4sS1zx4tog4qr69z104F+uam5RbZtcKE6je vLb4r47vZlzBBQNGO415PLsX33auQxcnT1nqKzp8ZJtdo1hXaxzvTn+ndhJX/OlG7j7K 0Srumhqv4UOgRbVAw0R0ojPs6TBFS/NNXk6jvXirVMhR7k46d88MgAeKFxeTWUgIEhMY kx+CWdqGoYH33nBE8TcmftmbPD0zRRq0ZNzoUyktCxEZEkvcHwpfLIpubOOUeBeFGsaV ryCA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a2si18982666eda.350.2021.03.03.21.52.49; Wed, 03 Mar 2021 21:53:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381357AbhCBHRu (ORCPT + 99 others); Tue, 2 Mar 2021 02:17:50 -0500 Received: from mx2.suse.de ([195.135.220.15]:39918 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1835891AbhCBGYq (ORCPT ); Tue, 2 Mar 2021 01:24:46 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id BFF8CB030; Tue, 2 Mar 2021 06:22:20 +0000 (UTC) From: Jiri Slaby To: gregkh@linuxfoundation.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Slaby , Chris Zankel , Max Filippov , linux-xtensa@linux-xtensa.org Subject: [PATCH 30/44] tty: xtensa/iss, don't reassign to tty->port Date: Tue, 2 Mar 2021 07:22:00 +0100 Message-Id: <20210302062214.29627-30-jslaby@suse.cz> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210302062214.29627-1-jslaby@suse.cz> References: <20210302062214.29627-1-jslaby@suse.cz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We already do tty_port_link_device in rs_init, so we don't need to reassign a port to tty->port. It would be too late in tty::ops::open anyway. Signed-off-by: Jiri Slaby Cc: Chris Zankel Cc: Max Filippov Cc: linux-xtensa@linux-xtensa.org --- arch/xtensa/platforms/iss/console.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/xtensa/platforms/iss/console.c b/arch/xtensa/platforms/iss/console.c index 1179011044a7..5d7f9c638437 100644 --- a/arch/xtensa/platforms/iss/console.c +++ b/arch/xtensa/platforms/iss/console.c @@ -48,7 +48,6 @@ static void rs_poll(struct timer_list *); static int rs_open(struct tty_struct *tty, struct file * filp) { - tty->port = &serial_port; spin_lock_bh(&timer_lock); if (tty->count == 1) { timer_setup(&serial_timer, rs_poll, 0); -- 2.30.1