commit | 3aaba245dfa33270a464d3098b8cce2a2af32784 | [log] [tgz] |
---|---|---|
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | Sun Mar 11 11:25:51 2018 +0530 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Mar 15 14:37:04 2018 +0100 |
tree | dcf05f25ddb8adc6bc7f411fb687497038cf3832 | |
parent | c1cc0d51140fbcbb3c8cb08ee7e92020dda9c1af [diff] |
driver core: cpu: 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>