29 Jun
2023
29 Jun
'23
4:44 p.m.
On Thu, Jun 29, 2023 at 01:46:01PM +0300, Andy Shevchenko wrote:
Instead of irq_domain_add_linear() that requires of_node, use irq_domain_create_linear() that works outside of OF world.
...
- rt5677->domain = irq_domain_add_linear(i2c->dev.of_node,
- rt5677->domain = irq_domain_create_linear(dev_fwnode(i2c->dev), RT5677_IRQ_NUM, &rt5677_domain_ops, rt5677);
Oops, this won't compile :-( Seems I tried in another branch that has this module disabled.
if (!rt5677->domain) { dev_err(&i2c->dev, "Failed to create IRQ domain\n");
--
With Best Regards,
Andy Shevchenko