commit | c8ae1674cd0d688661a8b85b8b2d940516933322 | [log] [tgz] |
---|---|---|
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | Sun Mar 11 11:25:49 2018 +0530 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Mar 15 14:37:04 2018 +0100 |
tree | b663b1e6fe1085a0eed8303920537234fec895a4 | |
parent | ef49ec1dc35112b17f7e928aa08fcab60240bf1d [diff] |
driver core: platform: use put_device() if device_register fail if device_register() 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>