From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4440232860B for ; Wed, 8 Jul 2026 09:57:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783504658; cv=none; b=sIdnA0ntVFXXPRaMXAs5DheuQNpOPrUjJOzPUcKliMc4ceZe2hwCU6mXeJfa6/dv2Y4IUe3XG0Rqg3fDy/DgqJgF/uEYOn4Qtc7xNfV3XXbaa436QR/wEp7OjAa6S9zUtjybemKc+YyL+AKAJRF8+FVqtRy5jq8ChJRmhRacgxo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783504658; c=relaxed/simple; bh=8O8JjtcH8ka+UIsj2Kdfb59kWfhngecTOaOoyDX5/7U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QsxnYsb/S6FhPdi09JtG1SOEMdeOa9Ya/1NZtqC7a5nQ7o0ObD2KfQWWbXO6LGz7preIYHTVKLLy2lCJZXMW6qTH5rv7CoMD1neyHGPDGOXBIW4EUeIeSvw+w+VPgvRwIgvhozclhNRDos6rd55WUKtlk1w8Jw4qNtR0QOcuAWs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=He+wf1Dy; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="He+wf1Dy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7642D1F000E9; Wed, 8 Jul 2026 09:57:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1783504656; bh=Z8YFoo/YC5ActAe7P4S92sUQqMp4B6xBQFetDyhAL8Q=; h=From:To:Cc:Subject:Date; b=He+wf1DyDy5O0hL+FyU0D/ID75YGTYjYTVTReZv6awGWZUf+qbctth2ROLm83ZHt4 bcIMQZUv4tQ5H8/tyny1Zx+2h750u3DtmClohXxB/H2FI6BFFQY45HZN6/ija32AkM lZY/QtqYL44TF0k9Sgj621G3TW/pW7dIfZzN7bojmB1biQH7R9Mc36+urDd6ms4ARk KD/zau//oWNqU0Ecz5gDTx6Aw7oDucvHUPh0Q6GTngS6QDoITavgPc6KReAnc7kJI5 3IN3aol0/cl7BYvQS5ySKqj09wmouEokCKHA1CX/QqN5Jp2bx4qWtbdYGcyWGWYdNh gn6IFM0cWZKpg== From: "Jiri Slaby (SUSE)" To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, "Jiri Slaby (SUSE)" , Thomas Gleixner , Andrea della Porta , Arnd Bergmann Subject: [PATCH] misc: rp1: Switch to irq_domain_create_linear() Date: Wed, 8 Jul 2026 11:57:33 +0200 Message-ID: <20260708095733.385396-1-jirislaby@kernel.org> X-Mailer: git-send-email 2.55.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit irq_domain_add_linear() is going away as being obsolete now. Switch to the preferred irq_domain_create_linear(). That differs in the first parameter: It takes more generic struct fwnode_handle instead of struct device_node. Therefore, of_fwnode_handle() is added around the parameter. Note some of the users can likely use dev->fwnode directly instead of indirect of_fwnode_handle(dev->of_node). But dev->fwnode is not guaranteed to be set for all, so this has to be investigated on case to case basis (by people who can actually test with the HW). Signed-off-by: Jiri Slaby (SUSE) Cc: Thomas Gleixner Cc: Andrea della Porta Cc: Arnd Bergmann Cc: Greg Kroah-Hartman --- drivers/misc/rp1/rp1_pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/rp1/rp1_pci.c b/drivers/misc/rp1/rp1_pci.c index 81685e3f3296..4a0620e85ad5 100644 --- a/drivers/misc/rp1/rp1_pci.c +++ b/drivers/misc/rp1/rp1_pci.c @@ -238,8 +238,8 @@ static int rp1_probe(struct pci_dev *pdev, const struct pci_device_id *id) } pci_set_drvdata(pdev, rp1); - rp1->domain = irq_domain_add_linear(rp1_node, RP1_INT_END, - &rp1_domain_ops, rp1); + rp1->domain = irq_domain_create_linear(of_fwnode_handle(rp1_node), RP1_INT_END, + &rp1_domain_ops, rp1); if (!rp1->domain) { dev_err(&pdev->dev, "Error creating IRQ domain\n"); err = -ENOMEM; -- 2.55.0