commit | e5da31472504b3d92a580856fcebcc764927cf4f | [log] [tgz] |
---|---|---|
author | Mayank Rana <mrana@codeaurora.org> | Thu Jun 28 12:26:57 2018 -0700 |
committer | Mayank Rana <mrana@codeaurora.org> | Tue Jul 03 08:35:32 2018 -0700 |
tree | 8f6014150201169b5c8e6f7293bc75a9b16c3444 | |
parent | 46211fdd2afc6c24135bbb7bb313588c5e89a43a [diff] |
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: Mayank Rana <mrana@codeaurora.org>