|
@@ -905,7 +905,7 @@ static void hidg_free_inst(struct usb_function_instance *f)
|
|
|
mutex_lock(&hidg_ida_lock);
|
|
|
|
|
|
hidg_put_minor(opts->minor);
|
|
|
- if (idr_is_empty(&hidg_ida.idr))
|
|
|
+ if (ida_is_empty(&hidg_ida))
|
|
|
ghid_cleanup();
|
|
|
|
|
|
mutex_unlock(&hidg_ida_lock);
|
|
@@ -931,7 +931,7 @@ static struct usb_function_instance *hidg_alloc_inst(void)
|
|
|
|
|
|
mutex_lock(&hidg_ida_lock);
|
|
|
|
|
|
- if (idr_is_empty(&hidg_ida.idr)) {
|
|
|
+ if (ida_is_empty(&hidg_ida)) {
|
|
|
status = ghid_setup(NULL, HIDG_MINORS);
|
|
|
if (status) {
|
|
|
ret = ERR_PTR(status);
|
|
@@ -944,7 +944,7 @@ static struct usb_function_instance *hidg_alloc_inst(void)
|
|
|
if (opts->minor < 0) {
|
|
|
ret = ERR_PTR(opts->minor);
|
|
|
kfree(opts);
|
|
|
- if (idr_is_empty(&hidg_ida.idr))
|
|
|
+ if (ida_is_empty(&hidg_ida))
|
|
|
ghid_cleanup();
|
|
|
goto unlock;
|
|
|
}
|