]> git.baikalelectronics.ru Git - kernel.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)
commita5f476ff3065606c168cbca30ae17f89590eb8eb
tree47d67ac123d1d6661e3ee30c274724482b94d52a
parent01eb5bc634cb87e3093ef8d3bab534fbff475242
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: 9ade8ff3e262 ("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