Commit 1ce0fd15 authored by Levente Kurusa's avatar Levente Kurusa Committed by Greg Kroah-Hartman

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: default avatarLevente Kurusa <levex@linux.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8f24c490
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment