summaryrefslogtreecommitdiffstats
path: root/drivers/base/platform.c
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2018-03-11 11:25:48 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-15 14:37:03 +0100
commitef49ec1dc35112b17f7e928aa08fcab60240bf1d (patch)
treeb735a02ac7d941b7bb4b1403a500c6d0f89e5dc1 /drivers/base/platform.c
parent9de9a449482677a75f1edd2049268a7efc40fc96 (diff)
downloadop-kernel-dev-ef49ec1dc35112b17f7e928aa08fcab60240bf1d.zip
op-kernel-dev-ef49ec1dc35112b17f7e928aa08fcab60240bf1d.tar.gz
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>
Diffstat (limited to 'drivers/base/platform.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud