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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Aug 2023 14:11:13 +0000 (16:11 +0200)
commitd10ab996bd5cb63e854924dd3d6ffb036d4d432a
treec4d1b70e4f7eb718b374382c4e92cff69269fa63
parent3c839f8332dfca0e7480b6c03785cc85da2c5415
gpio: sim: pass the GPIO device's software node to irq domain

[ Upstream commit 6e39c1ac688161b4db3617aabbca589b395242bc ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpio/gpio-sim.c