genirq/irq_sim: Shrink devm_irq_domain_create_sim()
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 1 Mar 2021 14:26:59 +0000 (15:26 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 30 Mar 2021 11:21:27 +0000 (13:21 +0200)
commit883ccef355b910398b99dfaf96d40557479a7e9b
tree5b2758a4ed190251a7a34f731131e065a2c5e558
parent6e457914935a3161eeb74e319abf9fd511aa1e4d
genirq/irq_sim: Shrink devm_irq_domain_create_sim()

The custom devres structure manages only a single pointer which can
can be achieved by using devm_add_action_or_reset() as well which
makes the code simpler.

[ tglx: Fixed return value handling - found by smatch ]

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20210301142659.8971-1-brgl@bgdev.pl
kernel/irq/irq_sim.c