Arvind Yadav a24853aab5 ssb: use put_device() if device_register fail
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: Kalle Valo <kvalo@codeaurora.org>
2018-03-13 18:48:29 +02:00
..
2014-08-25 15:39:22 -04:00
2013-03-06 16:24:23 -05:00
2015-09-29 11:00:58 +03:00