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 1EF27C433F5 for ; Wed, 15 Dec 2021 22:48:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231526AbhLOWsg (ORCPT ); Wed, 15 Dec 2021 17:48:36 -0500 Received: from mail-oi1-f169.google.com ([209.85.167.169]:41783 "EHLO mail-oi1-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231578AbhLOWse (ORCPT ); Wed, 15 Dec 2021 17:48:34 -0500 Received: by mail-oi1-f169.google.com with SMTP id u74so33740668oie.8; Wed, 15 Dec 2021 14:48:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PVZp2O1bgQSzgVKDDYQ7zXcpNDwg2s+vJLNvfCjA4TU=; b=ocw2Zms2nLLuYV86MpdyfHj4O+xWZIOObLYN99xK2WWNeb0Z4t3t/nix2Fx7ncHjMC /M/B+HemxH/+vOtBVnLAg7P42ZHwkyrOjyp7BQc1ZyN4nkrAM7PodJ2STq8wgJfXmNaM aaEaoWjCZBPNS+uzj3Pm+XHr/eGhzxWaWn990LfYIKxDT1hDHcEmsb74dLioD5BL0OsS mDfGVKzdqWnhVqD8eBtItjJNX9ho0wMraBIBSGDQ1mDpy+k3QOVwCr6yQkNCUtoRG4jK Pmf3ynPUnPlOQKasdR7QOgF81M5aihS7jl7G9UF9Z4LvAlorS0eBuP+NUKpL3GGzt6XU ewWA== X-Gm-Message-State: AOAM532InGAfBM/NGc1jT6+soQth5erszqv2DzMMXy6NlUV+HoLq2Vcq v6MAhtYUQ8WAxXEC7xVNuQ== X-Google-Smtp-Source: ABdhPJx7VQqNodJ+ys7iCxU+Xhbvhx1AxiRqI2o3wjFxGWm6aG2Y1O8aDrEtY5PSi4+u53dTQs4v2g== X-Received: by 2002:a05:6808:2014:: with SMTP id q20mr1910864oiw.117.1639608513898; Wed, 15 Dec 2021 14:48:33 -0800 (PST) Received: from xps15.herring.priv (66-90-148-213.dyn.grandenetworks.net. [66.90.148.213]) by smtp.googlemail.com with ESMTPSA id e16sm721130ook.38.2021.12.15.14.48.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Dec 2021 14:48:33 -0800 (PST) From: Rob Herring To: Richard Genoud , Greg Kroah-Hartman , Jiri Slaby , Nicolas Ferre , Alexandre Belloni , Ludovic Desroches Cc: Lad Prabhakar , linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] serial: atmel: Use platform_get_irq() to get the interrupt Date: Wed, 15 Dec 2021 16:48:31 -0600 Message-Id: <20211215224832.1985402-1-robh@kernel.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Accessing platform device resources directly has long been deprecated for DT as IRQ resources may not be available at device creation time. Drivers continuing to use static IRQ resources is blocking removing the static setup from the DT core code. Signed-off-by: Rob Herring --- drivers/tty/serial/atmel_serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c index 2c99a47a2535..9e57bfe523cf 100644 --- a/drivers/tty/serial/atmel_serial.c +++ b/drivers/tty/serial/atmel_serial.c @@ -2479,7 +2479,7 @@ static int atmel_init_port(struct atmel_uart_port *atmel_port, port->fifosize = 1; port->dev = &pdev->dev; port->mapbase = mpdev->resource[0].start; - port->irq = mpdev->resource[1].start; + port->irq = platform_get_irq(mpdev, 0); port->rs485_config = atmel_config_rs485; port->iso7816_config = atmel_config_iso7816; port->membase = NULL; -- 2.32.0 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A4E03C433EF for ; Wed, 15 Dec 2021 22:49:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=9Seh3JDqfrbMZYRcBhJjFVu7y64jtwMtDyk4YABL0L8=; b=obQx9R4jhW+Lr9 +6BC9UuiU+iYdAFzLa+tJNZswTcF8Kyf3sKYc607K0H5lSuEgyqZBaKMVEBK7GyR2Gd7BVFtCyYNg aIeXIALFUPvazzmyv9yK/zpZpaK5cJNsTji5PFMaC97T4XPScU+iPIDUUhnVK5vP9cu4KP3SLAZ1/ EZP0BudeCoO0bkIFkImmUzAiegGeAicl7A23tdEga7NheD+aBSJym5a4FvHCLh/MWIveNsJB6R1WN KM4YG+XJNhaT4Kfl7/T985VIx+00mTDWCgfrII5P0QzwYZV2Jeh2ganQtrHwFxFTl15EfbVuoyhlD +C5bo+restGxPeJyLlig==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxd4n-0030gS-7H; Wed, 15 Dec 2021 22:48:45 +0000 Received: from mail-oi1-f178.google.com ([209.85.167.178]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxd4d-0030Zi-7q for linux-arm-kernel@lists.infradead.org; Wed, 15 Dec 2021 22:48:39 +0000 Received: by mail-oi1-f178.google.com with SMTP id n66so33751000oia.9 for ; Wed, 15 Dec 2021 14:48:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PVZp2O1bgQSzgVKDDYQ7zXcpNDwg2s+vJLNvfCjA4TU=; b=mz2e8yF0jsl7GR3h+evYS9kP8S6U5LrScgO6Ip0US7I2WFghM9WffPg0xFl6jOWafv eX1+D2VI8FU3VJ/EBC+tj61u1lRgH9+b/8GnpLa0M8wVcAJEClJt9f3HOreeqawtRwmb 18Q4cxS43l4x16tO0ierGHn7D0J4IkLGLyFEE0Jxqhlm8jmc8O7fJvzNgRyq9+kqZceO D6UWd2crXaR4Ya6A8imtTeMOlLXUyN6KaoMhxr3zvUxPG/iDuY1IoSKlzQ69g6EtVcTe 63Ws2iodHvPSCMkRDIinxXYnndMaU/Y5HpBCcqf+ceehua2gctYJN4zIR5Y2mDitDr/k 7hXA== X-Gm-Message-State: AOAM533ffqzu8sPGn/rEnnWrtnp03IwCNldc+kHqh7IiKYzFYQa0fZCL x+eM1C6P3TUBz7iRWv0grA== X-Google-Smtp-Source: ABdhPJx7VQqNodJ+ys7iCxU+Xhbvhx1AxiRqI2o3wjFxGWm6aG2Y1O8aDrEtY5PSi4+u53dTQs4v2g== X-Received: by 2002:a05:6808:2014:: with SMTP id q20mr1910864oiw.117.1639608513898; Wed, 15 Dec 2021 14:48:33 -0800 (PST) Received: from xps15.herring.priv (66-90-148-213.dyn.grandenetworks.net. [66.90.148.213]) by smtp.googlemail.com with ESMTPSA id e16sm721130ook.38.2021.12.15.14.48.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Dec 2021 14:48:33 -0800 (PST) From: Rob Herring To: Richard Genoud , Greg Kroah-Hartman , Jiri Slaby , Nicolas Ferre , Alexandre Belloni , Ludovic Desroches Cc: Lad Prabhakar , linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] serial: atmel: Use platform_get_irq() to get the interrupt Date: Wed, 15 Dec 2021 16:48:31 -0600 Message-Id: <20211215224832.1985402-1-robh@kernel.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211215_144835_362956_56769225 X-CRM114-Status: GOOD ( 12.90 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Accessing platform device resources directly has long been deprecated for DT as IRQ resources may not be available at device creation time. Drivers continuing to use static IRQ resources is blocking removing the static setup from the DT core code. Signed-off-by: Rob Herring --- drivers/tty/serial/atmel_serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c index 2c99a47a2535..9e57bfe523cf 100644 --- a/drivers/tty/serial/atmel_serial.c +++ b/drivers/tty/serial/atmel_serial.c @@ -2479,7 +2479,7 @@ static int atmel_init_port(struct atmel_uart_port *atmel_port, port->fifosize = 1; port->dev = &pdev->dev; port->mapbase = mpdev->resource[0].start; - port->irq = mpdev->resource[1].start; + port->irq = platform_get_irq(mpdev, 0); port->rs485_config = atmel_config_rs485; port->iso7816_config = atmel_config_iso7816; port->membase = NULL; -- 2.32.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel