gpu: ipu-v3: Use dev_fwnode()
Subsystems (2)
PATCH 1/1 gpu: ipu-v3: 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) <[email protected]>
Cc Philipp Zabel <[email protected]>
Cc David Airlie <[email protected]>
Cc Simona Vetter <[email protected]>
--- drivers/gpu/ipu-v3/ipu-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/ipu-v3/ipu-common.c +1 -1
@@ -1169,7 +1169,7 @@ static int ipu_irq_init(struct ipu_soc *ipu) };int ret, i; - ipu->domain =irq_domain_create_linear (of_fwnode_handle (ipu->dev->of_node),IPU_NUM_IRQS , + ipu->domain =irq_domain_create_linear (dev_fwnode (ipu->dev),IPU_NUM_IRQS , &irq_generic_chip_ops, ipu);if (!ipu->domain) {dev_err (ipu->dev,"failed to add irq domain\n" );
Signature · 1 line
2.50.1
Quoted 12 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 Philipp Zabel <[email protected]>Cc David Airlie <[email protected]>Cc Simona Vetter <[email protected]>
Quoted 4 lines
--- drivers/gpu/ipu-v3/ipu-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by Dmitry Baryshkov <[email protected]>
Signature · 2 lines
With best wishes Dmitry
Quoted 18 lines · Dmitry Baryshkov
Quoted 12 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 Philipp Zabel <[email protected]>Cc David Airlie <[email protected]>Cc Simona Vetter <[email protected]>Quoted 4 lines
--- drivers/gpu/ipu-v3/ipu-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 1 line
Reviewed-by Dmitry Baryshkov <[email protected]>
Can someone pick this up? Dave?
thanks,
Signature · 2 lines
js suse labs