Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 04b8490b authored by Mayank Rana's avatar Mayank Rana
Browse files

usb: phy: Don't free phy memory from remove() API



USB PHY drivers are using managed allocation (i.e. devm_kzalloc())
with its probe() API. Hence remove usage of kfree() from remove()
API as allocated memory would be freed on driver detach itself.
This avoids multiple free of allocated PHY related memory.

Change-Id: Ia89bebe3d9d4d6020a5c72247e0f2970a1e2dd94
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent b93572a7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment