edac: Use dev_fwnode()
Subsystems (2)
PATCH 1/1 edac: 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.
---
Cc: [email protected]
--- drivers/edac/altera_edac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/edac/altera_edac.c +2 -2
@@ -2131,8 +2131,8 @@ static int altr_edac_a10_probe(struct platform_device *pdev) edac->irq_chip.name = pdev->dev.of_node->name; edac->irq_chip.irq_mask = a10_eccmgr_irq_mask; edac->irq_chip.irq_unmask = a10_eccmgr_irq_unmask; - edac->domain =irq_domain_create_linear (of_fwnode_handle (pdev->dev.of_node), -64 , &a10_eccmgr_ic_ops, edac); + edac->domain =irq_domain_create_linear (dev_fwnode (&pdev->dev),64 , &a10_eccmgr_ic_ops, + edac);if (!edac->domain) {dev_err (&pdev->dev,"Error adding IRQ domain\n" );return -ENOMEM ;
Signature · 1 line
2.50.1
Quoted 15 lines · Jiri Slaby (SUSE)
irq_domain_create_simple()takes fwnode as the first argument. It can be extracted from the struct device usingdev_fwnode()helper instead of usingof_nodewithof_fwnode_handle().So use the
dev_fwnode()helper.Signed-off-by Jiri Slaby (SUSE) <[email protected]>Cc Dinh Nguyen <[email protected]>Cc Borislav Petkov <[email protected]>Cc Tony Luck <[email protected]>Cc James Morse <[email protected]>Cc Mauro Carvalho Chehab <[email protected]>Cc Robert Richter <[email protected]>
Quoted 6 lines
---
Cc: [email protected]--- drivers/edac/altera_edac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Quoted 6 lines · Jiri Slaby (SUSE)
irq_domain_create_simple()takes fwnode as the first argument. It can be extracted from the struct device usingdev_fwnode()helper instead of usingof_nodewithof_fwnode_handle().So use the
dev_fwnode()helper.
Quoted 7 lines
Signed-off-by Jiri Slaby (SUSE) <[email protected]>Cc Dinh Nguyen <[email protected]>Cc Borislav Petkov <[email protected]>Cc Tony Luck <[email protected]>Cc James Morse <[email protected]>Cc Mauro Carvalho Chehab <[email protected]>Cc Robert Richter <[email protected]>
Thanks,
Yazen
Quoted 27 lines · Jiri Slaby (SUSE)
irq_domain_create_simple()takes fwnode as the first argument. It can be extracted from the struct device usingdev_fwnode()helper instead of usingof_nodewithof_fwnode_handle().So use the
dev_fwnode()helper.Signed-off-by Jiri Slaby (SUSE) <[email protected]>Cc Dinh Nguyen <[email protected]>Cc Borislav Petkov <[email protected]>Cc Tony Luck <[email protected]>Cc James Morse <[email protected]>Cc Mauro Carvalho Chehab <[email protected]>Cc Robert Richter <[email protected]>---
Cc: [email protected]--- drivers/edac/altera_edac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/edac/altera_edac.c +0
-0
drivers/edac/altera_edac.c static int altr_edac_a10_probe(struct platform_device *pdev) · line 2138
Quoted 10 lines
drivers/edac/altera_edac.c +2
-2@@ -2131,8 +2131,8 @@ static int altr_edac_a10_probe(struct platform_device *pdev) edac->irq_chip.name = pdev->dev.of_node->name; edac->irq_chip.irq_mask = a10_eccmgr_irq_mask; edac->irq_chip.irq_unmask = a10_eccmgr_irq_unmask; - edac->domain =irq_domain_create_linear (of_fwnode_handle (pdev->dev.of_node), -64 , &a10_eccmgr_ic_ops, edac); + edac->domain =irq_domain_create_linear (dev_fwnode (&pdev->dev),64 , &a10_eccmgr_ic_ops, + edac);if (!edac->domain) {dev_err (&pdev->dev,"Error adding IRQ domain\n" );return -ENOMEM ;
Applied, thanks.
Signature · 4 lines
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette