mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 22:14:03 +02:00
PCI: aspeed: Switch to irq_domain_create_linear()
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, dev_fwnode() is added around the 'dev' parameter. Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org> [mani: commit log] Signed-off-by: Manivannan Sadhasivam <mani@kernel.org> Cc: Thomas Gleixner <tglx@kernel.org> Cc: Jacky Chou <jacky_chou@aspeedtech.com> Link: https://patch.msgid.link/20260708095814.385480-1-jirislaby@kernel.org
This commit is contained in:
parent
dc59e4fea9
commit
f944349dcb
|
|
@ -725,10 +725,10 @@ static int aspeed_pcie_init_irq_domain(struct aspeed_pcie *pcie)
|
|||
{
|
||||
int ret;
|
||||
|
||||
pcie->intx_domain = irq_domain_add_linear(pcie->dev->of_node,
|
||||
PCI_NUM_INTX,
|
||||
&aspeed_intx_domain_ops,
|
||||
pcie);
|
||||
pcie->intx_domain = irq_domain_create_linear(dev_fwnode(pcie->dev),
|
||||
PCI_NUM_INTX,
|
||||
&aspeed_intx_domain_ops,
|
||||
pcie);
|
||||
if (!pcie->intx_domain) {
|
||||
ret = dev_err_probe(pcie->dev, -ENOMEM,
|
||||
"failed to get INTx IRQ domain\n");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user