Skip to content

Commit 6e39c1a

Browse files
author
Bartosz Golaszewski
committed
gpio: sim: pass the GPIO device's software node to irq domain
Associate the swnode of the GPIO device's (which is the interrupt controller here) with the irq domain. Otherwise the interrupt-controller device attribute is a no-op. Fixes: cb8c474 ("gpio: sim: new testing module") Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
1 parent ab4109f commit 6e39c1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/gpio-sim.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ static int gpio_sim_add_bank(struct fwnode_handle *swnode, struct device *dev)
411411
if (!chip->pull_map)
412412
return -ENOMEM;
413413

414-
chip->irq_sim = devm_irq_domain_create_sim(dev, NULL, num_lines);
414+
chip->irq_sim = devm_irq_domain_create_sim(dev, swnode, num_lines);
415415
if (IS_ERR(chip->irq_sim))
416416
return PTR_ERR(chip->irq_sim);
417417

0 commit comments

Comments
 (0)