.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "USB_DEREGISTER_DEV" "" "06 October 2005" "" ""
.SH NAME
usb_deregister_dev \- deregister a USB device's dynamic minor.
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
void usb_deregister_dev (struct usb_interface * \fIintf\fB, struct usb_class_driver * \fIclass_driver\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIintf\fB\fR
pointer to the usb_interface that is being deregistered
.TP
\fB\fIclass_driver\fB\fR
pointer to the usb_class_driver for this device
.SH "DESCRIPTION"
.PP
Used in conjunction with \fBusb_register_dev\fR\&. This function is called
when the USB driver is finished with the minor numbers gotten from a
call to \fBusb_register_dev\fR (usually when the device is disconnected
from the system.)
.PP
This function also cleans up the devfs file for the usb device, if devfs
is enabled, and removes the usb class device from the sysfs tree.
.PP
This should be called by all drivers that use the USB major number.