WSL2-Linux-Kernel/drivers/staging/hikey9xx
Christophe JAILLET 12b38ea040 staging: spmi: hisi-spmi-controller: Fix some error handling paths
IN the probe function, if an error occurs after calling
'spmi_controller_alloc()', it must be undone by a corresponding
'spmi_controller_put() call.

In the remove function, use 'spmi_controller_put(ctrl)' instead of
'kfree(ctrl)'.

While a it fix an error message
(s/spmi_add_controller/spmi_controller_add/)

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/20201213151105.137731-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-12-28 15:14:53 +01:00
..
Kconfig staging: hikey9xx: Specify HAS_IOMEM dependency for MFD_HI6421_SPMI 2020-11-23 17:59:51 +01:00
Makefile staging: hikey9xx: add build for the Kirin 970 PHY driver 2020-09-17 18:50:25 +02:00
TODO staging: hikey9xx: add a TODO list 2020-08-18 16:15:27 +02:00
hi6421-spmi-pmic.c staging: mfd: hi6421-spmi-pmic: fix error return code in hi6421_spmi_pmic_probe() 2020-11-23 17:59:51 +01:00
hi6421v600-regulator.c staging: regulator: hi6421v600-regulator: Remove unused including <linux/version.h> 2020-09-13 09:26:24 +02:00
hisi-spmi-controller.c staging: spmi: hisi-spmi-controller: Fix some error handling paths 2020-12-28 15:14:53 +01:00
hisilicon,hi6421-spmi-pmic.yaml staging: hikey9xx: update references inside the yaml files 2020-08-28 12:19:15 +02:00
hisilicon,hisi-spmi-controller.yaml staging: hikey9xx: update references inside the yaml files 2020-08-28 12:19:15 +02:00
phy-hi3670-usb3.c staging: hikey9xx: Fix incorrect assignment 2020-09-22 09:51:28 +02:00
phy-hi3670-usb3.yaml staging: hikey9xx: convert phy-kirin970-usb3.txt to yaml 2020-09-17 18:50:26 +02:00