]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio:common:ssp_sensors: Fix an error handling path ssp_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Fri, 10 Oct 2025 18:58:48 +0000 (20:58 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 13 Oct 2025 07:38:09 +0000 (08:38 +0100)
commit21553258b94861a73d7f2cf15469d69240e1170d
tree906236a77983aaa333952af2285aede06c8f3f14
parentbd886cdcbf9e746f61c74035a3acd42e9108e115
iio:common:ssp_sensors: Fix an error handling path ssp_probe()

If an error occurs after a successful mfd_add_devices() call, it should be
undone by a corresponding mfd_remove_devices() call, as already done in the
remove function.

Fixes: 50dd64d57eee ("iio: common: ssp_sensors: Add sensorhub driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/common/ssp_sensors/ssp_dev.c