linux/drivers/mux
Johan Hovold 76096f156f mux: mmio: fix regmap leak on probe failure
[ Upstream commit 3c4ae63073 ]

The mmio regmap that may be allocated during probe is never freed.

Switch to using the device managed allocator so that the regmap is
released on probe failures (e.g. probe deferral) and on driver unbind.

Fixes: 61de83fd82 ("mux: mmio: Do not use syscon helper to build regmap")
Cc: stable@vger.kernel.org	# 6.16
Cc: Andrew Davis <afd@ti.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Acked-by: Andrew Davis <afd@ti.com>
Link: https://patch.msgid.link/20251127134702.1915-1-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2026-03-04 07:21:23 -05:00
..
adg792a.c mux: adg792a: remove incorrect of_match_ptr annotation 2025-05-01 19:43:43 +02:00
adgs1408.c mux: adgs1408: fix Wvoid-pointer-to-enum-cast warning 2025-05-08 17:12:08 +02:00
core.c mux: Convert mux_control_ops to a flex array member in mux_chip 2025-06-18 14:20:32 -07:00
gpio.c mux: gpio: add optional regulator support 2025-05-08 14:55:36 +02:00
Kconfig mux: mmio: Fix missing CONFIG_REGMAP_MMIO 2025-07-04 16:27:08 +02:00
Makefile mux: adgs1408: new driver for Analog Devices ADGS1408/1409 mux 2018-08-02 10:23:02 +02:00
mmio.c mux: mmio: fix regmap leak on probe failure 2026-03-04 07:21:23 -05:00