file.c (6548698f929814375fa5d62ae1db96959b0418c1) file.c (ed7487c2c28560a6b06900851ab63ebca1aea444)
1/*
2 * drivers/usb/core/file.c
3 *
4 * (C) Copyright Linus Torvalds 1999
5 * (C) Copyright Johannes Erdfelt 1999-2001
6 * (C) Copyright Andreas Gal 1999
7 * (C) Copyright Gregory P. Smith 1999
8 * (C) Copyright Deti Fliegl 1999 (new USB architecture)

--- 85 unchanged lines hidden (view full) ---

94
95 kref_init(&usb_class->kref);
96 usb_class->class = class_create(THIS_MODULE, "usb");
97 if (IS_ERR(usb_class->class)) {
98 result = IS_ERR(usb_class->class);
99 printk(KERN_ERR "class_create failed for usb devices\n");
100 kfree(usb_class);
101 usb_class = NULL;
1/*
2 * drivers/usb/core/file.c
3 *
4 * (C) Copyright Linus Torvalds 1999
5 * (C) Copyright Johannes Erdfelt 1999-2001
6 * (C) Copyright Andreas Gal 1999
7 * (C) Copyright Gregory P. Smith 1999
8 * (C) Copyright Deti Fliegl 1999 (new USB architecture)

--- 85 unchanged lines hidden (view full) ---

94
95 kref_init(&usb_class->kref);
96 usb_class->class = class_create(THIS_MODULE, "usb");
97 if (IS_ERR(usb_class->class)) {
98 result = IS_ERR(usb_class->class);
99 printk(KERN_ERR "class_create failed for usb devices\n");
100 kfree(usb_class);
101 usb_class = NULL;
102 goto exit;
102 }
103 usb_class->class->devnode = usb_devnode;
104
105exit:
106 return result;
107}
108
109static void release_usb_class(struct kref *kref)

--- 155 unchanged lines hidden ---
103 }
104 usb_class->class->devnode = usb_devnode;
105
106exit:
107 return result;
108}
109
110static void release_usb_class(struct kref *kref)

--- 155 unchanged lines hidden ---