Skip to content

Commit fd3a4de

Browse files
Jiri Slaby (SUSE)Jassi Brar
authored andcommitted
mailbox: Use dev_fwnode()
irq_domain_create_simple() takes fwnode as the first argument. It can be extracted from the struct device using dev_fwnode() helper instead of using of_node with of_fwnode_handle(). So use the dev_fwnode() helper. Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org> Cc: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Cc: Jassi Brar <jassisinghbrar@gmail.com> Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
1 parent 472f8a3 commit fd3a4de

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/mailbox/qcom-ipcc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,7 @@ static int qcom_ipcc_probe(struct platform_device *pdev)
312312
if (!name)
313313
return -ENOMEM;
314314

315-
ipcc->irq_domain = irq_domain_create_tree(of_fwnode_handle(pdev->dev.of_node),
316-
&qcom_ipcc_irq_ops, ipcc);
315+
ipcc->irq_domain = irq_domain_create_tree(dev_fwnode(&pdev->dev), &qcom_ipcc_irq_ops, ipcc);
317316
if (!ipcc->irq_domain)
318317
return -ENOMEM;
319318

0 commit comments

Comments
 (0)