uwb: umc-dev: add missing put_device call
This is required so that we give up the last reference to the device. Signed-off-by: Levente Kurusa <levex@linux.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8f24c4905c
commit
1ce0fd15be
1 changed files with 1 additions and 0 deletions
|
@ -66,6 +66,7 @@ int umc_device_register(struct umc_dev *umc)
|
|||
return 0;
|
||||
|
||||
error_device_register:
|
||||
put_device(&umc->dev);
|
||||
release_resource(&umc->resource);
|
||||
error_request_resource:
|
||||
return err;
|
||||
|
|
Loading…
Reference in a new issue