Project

General

Profile

Actions

Feature #2742

open

106: The gadget driver, char device number, and class device should be unregistered in reverse order of registration

Added by Evgeny Novikov over 12 years ago. Updated almost 10 years ago.

Status:
Open
Priority:
Normal
Start date:
04/12/2012
Due date:
% Done:

90%

Estimated time:
Published in build:

Description

That is the correct order of function calls (in case of successful execution respectively):

class_create
  alloc_chrdev_region
    usb_gadget_register_driver
    usb_gadget_unregister_driver
  unregister_chrdev_region
class_destroy

This rule corresponds to specific:usb:gadget class. 106_1a model will take care on this issue.

Links
Sample bugfix 2b9ec6c

Actions

Also available in: Atom PDF