mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
gpio: sim: pass the GPIO device's software node to irq domain
[ Upstream commit6e39c1ac68] 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:cb8c474e79("gpio: sim: new testing module") Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
3c839f8332
commit
d10ab996bd
@@ -407,7 +407,7 @@ static int gpio_sim_add_bank(struct fwnode_handle *swnode, struct device *dev)
|
||||
if (!chip->pull_map)
|
||||
return -ENOMEM;
|
||||
|
||||
chip->irq_sim = devm_irq_domain_create_sim(dev, NULL, num_lines);
|
||||
chip->irq_sim = devm_irq_domain_create_sim(dev, swnode, num_lines);
|
||||
if (IS_ERR(chip->irq_sim))
|
||||
return PTR_ERR(chip->irq_sim);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user