commit | be5acd246daa04edad9d758b8be37e5e2f989243 | [log] [tgz] |
---|---|---|
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | Thu Mar 08 15:06:08 2018 +0530 |
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | Sat Mar 17 21:46:19 2018 -0700 |
tree | 61d18172da5c4144e22bcc2ae3d2002d779119a8 | |
parent | a9011726c4bb37e5d6a7279bf47fcc19cd9d3e1a [diff] |
rpmsg: smd: use put_device() if device_register fail if device_register() returned an error! Always use put_device() to give up the reference initialized. unregister device for other return error. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>