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: Rob Clark <[email protected]>
Cc: Abhinav Kumar <[email protected]>
Cc: Dmitry Baryshkov <[email protected]>
Cc: Sean Paul <[email protected]>
Cc: Marijn Suijten <[email protected]>
Cc: David Airlie <[email protected]>
Cc: Simona Vetter <[email protected]>

---

Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
 drivers/gpu/drm/msm/msm_mdss.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/msm/msm_mdss.c b/drivers/gpu/drm/msm/msm_mdss.c
index 709979fcfab6..5ea2a2241246 100644
--- a/drivers/gpu/drm/msm/msm_mdss.c
+++ b/drivers/gpu/drm/msm/msm_mdss.c
@@ -150,8 +150,7 @@ static int _msm_mdss_irq_domain_add(struct msm_mdss 
*msm_mdss)
 
        dev = msm_mdss->dev;
 
-       domain = irq_domain_create_linear(of_fwnode_handle(dev->of_node), 32,
-                       &msm_mdss_irqdomain_ops, msm_mdss);
+       domain = irq_domain_create_linear(dev_fwnode(dev), 32, 
&msm_mdss_irqdomain_ops, msm_mdss);
        if (!domain) {
                dev_err(dev, "failed to add irq_domain\n");
                return -EINVAL;
-- 
2.49.0

Reply via email to