Searched refs:usb_class (Results 1 – 1 of 1) sorted by relevance
65 static struct usb_class { struct68 } *usb_class; argument74 if (usb_class != NULL) { in init_usb_class()75 kref_get(&usb_class->kref); in init_usb_class()79 usb_class = kmalloc(sizeof(*usb_class), GFP_KERNEL); in init_usb_class()80 if (!usb_class) { in init_usb_class()85 kref_init(&usb_class->kref); in init_usb_class()86 usb_class->class = class_create(THIS_MODULE, "usb"); in init_usb_class()87 if (IS_ERR(usb_class->class)) { in init_usb_class()88 result = IS_ERR(usb_class->class); in init_usb_class()[all …]