]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
usb: gadget: s3c: Fix the error handling path in 's3c2410_udc_probe()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 27 Mar 2021 07:38:53 +0000 (08:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Mar 2021 12:07:18 +0000 (14:07 +0200)
commite5242861ec6a0bce25b4cd10af0fc8a508fd067d
tree47d67ac123d1d6661e3ee30c274724482b94d52a
parent42067ccd9eb2077979ac3ce8b7b95c694bd09e14
usb: gadget: s3c: Fix the error handling path in 's3c2410_udc_probe()'

Some 'clk_prepare_enable()' and 'clk_get()' must be undone in the error
handling path of the probe function, as already done in the remove
function.

Fixes: 3fc154b6b813 ("USB Gadget driver for Samsung s3c2410 ARM SoC")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Link: https://lore.kernel.org/r/2bee52e4ce968f48b4c32545cf8f3b2ab825ba82.1616830026.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/s3c2410_udc.c