mirror of
https://github.com/torvalds/linux.git
synced 2024-11-06 20:21:57 +00:00
usb: gadget: s3c-hsudc: use release_mem_region instead of release_resource
As the memory region is requested through request_mem_region use the correct paired method to release it in the error path and don't go "beneath the API". Reported-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Heiko Stuebner <heiko@sntech.de> Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
bab7d037c8
commit
dee19be7d8
@ -1376,9 +1376,7 @@ err_irq:
|
||||
iounmap(hsudc->regs);
|
||||
|
||||
err_remap:
|
||||
release_resource(hsudc->mem_rsrc);
|
||||
kfree(hsudc->mem_rsrc);
|
||||
|
||||
release_mem_region(res->start, resource_size(res));
|
||||
err_res:
|
||||
if (hsudc->transceiver)
|
||||
otg_put_transceiver(hsudc->transceiver);
|
||||
|
Loading…
Reference in New Issue
Block a user