]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: intel_soc_pmic: Fix an error handling path in intel_soc_pmic_i2c_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 1 Aug 2022 11:42:02 +0000 (14:42 +0300)
committerLee Jones <lee@kernel.org>
Wed, 28 Sep 2022 15:09:48 +0000 (16:09 +0100)
commitd0a995d1e2b08a1448be75b77e6fab08cd360ace
tree981c9be72d19caf755146a77414422eb3ba2971b
parente8bbc66bb6f10928b2ade38cf731aad7c049b645
mfd: intel_soc_pmic: Fix an error handling path in intel_soc_pmic_i2c_probe()

The commit in Fixes: has added a pwm_add_table() call in the probe() and
a pwm_remove_table() call in the remove(), but forget to update the error
handling path of the probe.

Add the missing pwm_remove_table() call.

Fixes: 3966f24b8bbb ("mfd: intel_soc_pmic_core: ADD PWM lookup table for CRC PMIC based PWM")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20220801114211.36267-1-andriy.shevchenko@linux.intel.com
drivers/mfd/intel_soc_pmic_core.c