commit | ef49ec1dc35112b17f7e928aa08fcab60240bf1d | [log] [tgz] |
---|---|---|
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | Sun Mar 11 11:25:48 2018 +0530 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Mar 15 14:37:03 2018 +0100 |
tree | b735a02ac7d941b7bb4b1403a500c6d0f89e5dc1 | |
parent | 9de9a449482677a75f1edd2049268a7efc40fc96 [diff] |
base: soc: use put_device() instead of kfree() Never directly free @dev after calling device_register(), even if it returned an error! Always use put_device() to give up the reference initialized. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>