diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2018-03-08 15:06:08 +0530 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2018-03-17 21:46:19 -0700 |
commit | be5acd246daa04edad9d758b8be37e5e2f989243 (patch) | |
tree | 61d18172da5c4144e22bcc2ae3d2002d779119a8 /drivers/usb | |
parent | a9011726c4bb37e5d6a7279bf47fcc19cd9d3e1a (diff) | |
download | linux-be5acd246daa04edad9d758b8be37e5e2f989243.tar.gz linux-be5acd246daa04edad9d758b8be37e5e2f989243.tar.bz2 linux-be5acd246daa04edad9d758b8be37e5e2f989243.zip |
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>
Diffstat (limited to 'drivers/usb')
0 files changed, 0 insertions, 0 deletions