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 2DE1EC433F5 for ; Wed, 15 Dec 2021 22:53:42 +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=KAjuhY+wNn1iArcaZfP48otQ1A7sng5UIy7ComYx5eA=; b=Khv3Zlos9BxjnW sX9XSCOaqJEIsX9Gs9cP56xOfT9VXbghEt15DSriA0pHr4txap5hjdh/gL27gUkMJyek1oZzIT+9z Fac7pVHAJ5QnhkzZYR82YCUAb2J2w19bkBHv7gh5B8LO9mXvNHzvvwgevI4bHc5/iIZ689+CGh2f5 cFbAw8mQC/nwdTqerXJdP67iqxGKv1vagyjGuDoxfp+BzyTOrTxmTU9vGLJ5+qTpojHoxfR6QKsk9 MGTuDZgGAYp6NoT0aqjobWC7BJct0N2U/5RPldbsSNFtZ3ZywHYwZXEU5QrRaHu8fhvLaqJ40PVse DbCOplSOCnDxhJtfO87g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxd8H-0031pD-36; Wed, 15 Dec 2021 22:52:21 +0000 Received: from mail-oi1-f170.google.com ([209.85.167.170]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxd8E-0031o0-0G for linux-arm-kernel@lists.infradead.org; Wed, 15 Dec 2021 22:52:19 +0000 Received: by mail-oi1-f170.google.com with SMTP id bj13so33815055oib.4 for ; Wed, 15 Dec 2021 14:52:17 -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=BTAdvg6ZCWLy3pwv52Rr2UXsoSNfM+gDylz9/qM85kQ=; b=cWBSiKD/FuSlf3tuyKpP77s1jXLsSQd5h5+Ut1PW2q1YU0aIx9z1kMu7qkPAp5RSlz V0an+wIStbLEqlwGgq83tf0/KR95IsQzYMKkESZKToL2fugA45J9M90H8THMteoeZRwk vaLaHlJDZ9m0h271XyB6V04X7+i54h1iTs3F0UAAoUty66vCnYhaxF80UV9KDpzfXbO7 mB0f0EZ60L4K5RyI7QZ5gc5qNqe42HNBDGa42PB88x1pP3XP5nzRR5tU2+VwvcT4QdqZ YnuwDMTII6komZ9oYOqYyvpSABY7Z52pDkyLi9fpNdML4+8LkCMmHqi31R7meGUEXvJQ C0zQ== X-Gm-Message-State: AOAM530wo8BvfIUoXMeg7+vyFSKhs0bVMpqgFNt5E+MR6b8m1peTRoP6 UGDzyE631C94aRB55h1gQg== X-Google-Smtp-Source: ABdhPJzjW+/VnakDTGGNVbf3wwocFZdqSTXDGieMzyqzLtirEI39Yr8cGa7eiwqdxYhdv10H+ad5CA== X-Received: by 2002:a05:6808:697:: with SMTP id k23mr1998953oig.18.1639608736558; Wed, 15 Dec 2021 14:52:16 -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 i16sm599759oig.15.2021.12.15.14.52.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Dec 2021 14:52:15 -0800 (PST) From: Rob Herring To: Alan Stern , Greg Kroah-Hartman Cc: Lad Prabhakar , linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] usb: uhci: Use platform_get_irq() to get the interrupt Date: Wed, 15 Dec 2021 16:52:03 -0600 Message-Id: <20211215225203.1991003-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_145218_073617_A9F66543 X-CRM114-Status: GOOD ( 12.93 ) 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/usb/host/uhci-platform.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/uhci-platform.c b/drivers/usb/host/uhci-platform.c index 70dbd95c3f06..b854699e9e4e 100644 --- a/drivers/usb/host/uhci-platform.c +++ b/drivers/usb/host/uhci-platform.c @@ -132,7 +132,11 @@ static int uhci_hcd_platform_probe(struct platform_device *pdev) goto err_rmr; } - ret = usb_add_hcd(hcd, pdev->resource[1].start, IRQF_SHARED); + ret = platform_get_irq(pdev, 0); + if (ret < 0) + goto err_clk; + + ret = usb_add_hcd(hcd, ret, IRQF_SHARED); if (ret) goto err_clk; -- 2.32.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel