Arvind Yadav ea5ffcd467 sparc: vio: use put_device() instead of kfree()
[ Upstream commit 00ad691ab140b54ab9f5de5e74cb994f552e8124 ]

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: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-05-25 16:17:31 +02:00
..
2018-02-28 10:19:44 +01:00
2018-02-22 15:42:23 +01:00
2018-05-22 18:54:07 +02:00