]> www.infradead.org Git - users/jedix/linux-maple.git/commit
soundwire: bus: Move irq mapping cleanup into devres
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Thu, 5 Dec 2024 11:33:15 +0000 (11:33 +0000)
committerVinod Koul <vkoul@kernel.org>
Mon, 23 Dec 2024 06:11:09 +0000 (11:41 +0530)
commita5fef9baa87f8be359a4b3ed11829ebca82e56ad
treee5bd033fcd8bd6b4d7f93c52b569a8823b265210
parent40384c840ea1944d7c5a392e8975ed088ecf0b37
soundwire: bus: Move irq mapping cleanup into devres

Currently the IRQ mapping is disposed off in sdw_drv_remove(), however
if the SoundWire device uses devres this can run before the actual device
clean up, potentially clearing the mapping whilst it is still in use.
Make this devres safe by also moving the sdw_irq_dispose_mapping into
devres.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20241205113315.2266313-1-ckeepax@opensource.cirrus.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/bus_type.c
drivers/soundwire/irq.c
drivers/soundwire/irq.h