From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org
Cc: Oder Chiou <oder_chiou@realtek.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>,
Takashi Iwai <tiwai@suse.com>
Subject: [PATCH v2 2/4] ASoC: rt5677: Use agnostic irq_domain_create_linear()
Date: Fri, 30 Jun 2023 20:21:53 +0300 [thread overview]
Message-ID: <20230630172155.83754-3-andriy.shevchenko@linux.intel.com> (raw)
In-Reply-To: <20230630172155.83754-1-andriy.shevchenko@linux.intel.com>
Instead of irq_domain_add_linear() that requires of_node,
use irq_domain_create_linear() that works outside of OF world.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
sound/soc/codecs/rt5677.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/codecs/rt5677.c b/sound/soc/codecs/rt5677.c
index 3a2a6b150cda..17d5dd5d2974 100644
--- a/sound/soc/codecs/rt5677.c
+++ b/sound/soc/codecs/rt5677.c
@@ -5511,7 +5511,7 @@ static int rt5677_init_irq(struct i2c_client *i2c)
RT5677_GPIO1_PIN_MASK, RT5677_GPIO1_PIN_IRQ);
/* Ready to listen for interrupts */
- 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);
if (!rt5677->domain) {
dev_err(&i2c->dev, "Failed to create IRQ domain\n");
--
2.40.0.1.gaa8946217a0b
next prev parent reply other threads:[~2023-06-30 17:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-30 17:21 [PATCH v2 0/4] ASoC: rt5677: Refactor GPIO and use device_get_match_data() Andy Shevchenko
2023-06-30 17:21 ` [PATCH v2 1/4] ASoC: rt5677: Refactor GPIO support code Andy Shevchenko
2023-06-30 17:21 ` Andy Shevchenko [this message]
2023-06-30 17:21 ` [PATCH v2 3/4] ASoC: rt5677: Use device_get_match_data() Andy Shevchenko
2023-06-30 17:21 ` [PATCH v2 4/4] ASoC: rt5677: Sort headers alphabetically Andy Shevchenko
2023-07-12 11:47 ` [PATCH v2 0/4] ASoC: rt5677: Refactor GPIO and use device_get_match_data() Mark Brown
2023-07-12 13:56 ` Andy Shevchenko
2023-07-12 15:23 ` Mark Brown
2023-07-12 15:31 ` Andy Shevchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230630172155.83754-3-andriy.shevchenko@linux.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=oder_chiou@realtek.com \
--cc=perex@perex.cz \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox