Skip to content

Commit 83eddf0

Browse files
Jiri Slaby (SUSE)broonie
authored andcommitted
irqdomain: sound: Switch to irq_domain_create_linear()
irq_domain_add_linear() is going away as being obsolete now. Switch to the preferred irq_domain_create_linear(). That differs in the first parameter: It takes more generic struct fwnode_handle instead of struct device_node. Therefore, of_fwnode_handle() is added around the parameter. Note some of the users can likely use dev->fwnode directly instead of indirect of_fwnode_handle(dev->of_node). But dev->fwnode is not guaranteed to be set for all, so this has to be investigated on case to case basis (by people who can actually test with the HW). Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org> Cc: Liam Girdwood <lgirdwood@gmail.com> Cc: Mark Brown <broonie@kernel.org> Cc: Jaroslav Kysela <perex@perex.cz> Cc: Takashi Iwai <tiwai@suse.com> Cc: Prasad Kumpatla <quic_pkumpatl@quicinc.com> Cc: linux-sound@vger.kernel.org Link: https://patch.msgid.link/20250319092951.37667-36-jirislaby@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 88f2009 commit 83eddf0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

sound/soc/codecs/wcd937x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2480,7 +2480,7 @@ static const struct irq_domain_ops wcd_domain_ops = {
24802480

24812481
static int wcd937x_irq_init(struct wcd937x_priv *wcd, struct device *dev)
24822482
{
2483-
wcd->virq = irq_domain_add_linear(NULL, 1, &wcd_domain_ops, NULL);
2483+
wcd->virq = irq_domain_create_linear(NULL, 1, &wcd_domain_ops, NULL);
24842484
if (!(wcd->virq)) {
24852485
dev_err(dev, "%s: Failed to add IRQ domain\n", __func__);
24862486
return -EINVAL;

sound/soc/codecs/wcd938x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3025,7 +3025,7 @@ static const struct irq_domain_ops wcd_domain_ops = {
30253025
static int wcd938x_irq_init(struct wcd938x_priv *wcd, struct device *dev)
30263026
{
30273027

3028-
wcd->virq = irq_domain_add_linear(NULL, 1, &wcd_domain_ops, NULL);
3028+
wcd->virq = irq_domain_create_linear(NULL, 1, &wcd_domain_ops, NULL);
30293029
if (!(wcd->virq)) {
30303030
dev_err(dev, "%s: Failed to add IRQ domain\n", __func__);
30313031
return -EINVAL;

sound/soc/codecs/wcd939x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2975,7 +2975,7 @@ static const struct irq_domain_ops wcd_domain_ops = {
29752975

29762976
static int wcd939x_irq_init(struct wcd939x_priv *wcd, struct device *dev)
29772977
{
2978-
wcd->virq = irq_domain_add_linear(NULL, 1, &wcd_domain_ops, NULL);
2978+
wcd->virq = irq_domain_create_linear(NULL, 1, &wcd_domain_ops, NULL);
29792979
if (!(wcd->virq)) {
29802980
dev_err(dev, "%s: Failed to add IRQ domain\n", __func__);
29812981
return -EINVAL;

0 commit comments

Comments
 (0)