Skip to content

Commit 29dea33

Browse files
Jiri Slaby (SUSE)KAGA-KOKO
authored andcommitted
thermal: 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). [ tglx: Fixed up subject prefix ] Signed-off-by: Jiri Slaby (SUSE) <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/all/[email protected]
1 parent 6e4e30d commit 29dea33

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

drivers/thermal/qcom/lmh.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,8 @@ static int lmh_probe(struct platform_device *pdev)
209209
}
210210

211211
lmh_data->irq = platform_get_irq(pdev, 0);
212-
lmh_data->domain = irq_domain_add_linear(np, 1, &lmh_irq_ops, lmh_data);
212+
lmh_data->domain = irq_domain_create_linear(of_fwnode_handle(np), 1, &lmh_irq_ops,
213+
lmh_data);
213214
if (!lmh_data->domain) {
214215
dev_err(dev, "Error adding irq_domain\n");
215216
return -EINVAL;

drivers/thermal/tegra/soctherm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1234,7 +1234,7 @@ static int soctherm_oc_int_init(struct device_node *np, int num_irqs)
12341234
soc_irq_cdata.irq_chip.irq_set_type = soctherm_oc_irq_set_type;
12351235
soc_irq_cdata.irq_chip.irq_set_wake = NULL;
12361236

1237-
soc_irq_cdata.domain = irq_domain_add_linear(np, num_irqs,
1237+
soc_irq_cdata.domain = irq_domain_create_linear(of_fwnode_handle(np), num_irqs,
12381238
&soctherm_oc_domain_ops,
12391239
&soc_irq_cdata);
12401240

0 commit comments

Comments
 (0)