commit | 474cca5fd894de99afc69274e8b25524ae62d7ee | [log] [tgz] |
---|---|---|
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | Mon Mar 12 17:06:53 2018 +0530 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Mar 15 18:12:01 2018 +0100 |
tree | 1ac5e0eb1ac393bc7a6e13457e9e2d9a2d906ff8 | |
parent | 5fbe9f35dfcd83d94ec9bf4f68a9e0d7cc0550b5 [diff] |
misc: ocxl: use put_device() instead of device_unregister() 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> Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Acked-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>