提交 1ce0fd15 编写于 作者: L Levente Kurusa 提交者: 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: NLevente Kurusa <levex@linux.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册