gpio: sim: pass the GPIO device's software node to irq domain
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 22 Aug 2023 19:29:43 +0000 (21:29 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 23 Aug 2023 19:05:28 +0000 (21:05 +0200)
commit6e39c1ac688161b4db3617aabbca589b395242bc
tree3f2574611c51e2550262953198065951869fe874
parentab4109f91b328ff5cb5e1279f64d443241add2d1
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: cb8c474e79be ("gpio: sim: new testing module")
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/gpio/gpio-sim.c