OSDN Git Service

usb: gadget: s3c: Fix incorrect resources releasing
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 27 Mar 2021 07:36:50 +0000 (08:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Mar 2021 12:07:18 +0000 (14:07 +0200)
commit42067ccd9eb2077979ac3ce8b7b95c694bd09e14
treef86ce034fd9c5776c45c986e96e41e5a36a09e3f
parentd00be779cc5016a1f4cc414e25fc45a9df40ffaf
usb: gadget: s3c: Fix incorrect resources releasing

Since commit 188db4435ac6 ("usb: gadget: s3c: use platform resources"),
'request_mem_region()' and 'ioremap()' are no more used, so they don't need
to be undone in the error handling path of the probe and in the remove
function.

Remove these calls and the unneeded 'rsrc_start' and 'rsrc_len' global
variables.

Fixes: 188db4435ac6 ("usb: gadget: s3c: use platform resources")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Link: https://lore.kernel.org/r/b317638464f188159bd8eea44427dd359e480625.1616830026.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/s3c2410_udc.c