Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
- Loading branch information