'\" t
.\"     Title: usb_deregister_dev
.\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
.\"      Date: January 2017
.\"    Manual: USB Core APIs
.\"    Source: Kernel Hackers Manual 4.8.15
.\"  Language: English
.\"
.TH "USB_DEREGISTER_DEV" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "USB Core APIs"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
usb_deregister_dev \- deregister a USB device\*(Aqs dynamic minor\&.
.SH "SYNOPSIS"
.HP \w'void\ usb_deregister_dev('u
.BI "void usb_deregister_dev(struct\ usb_interface\ *\ " "intf" ", struct\ usb_class_driver\ *\ " "class_driver" ");"
.SH "ARGUMENTS"
.PP
\fIintf\fR
.RS 4
pointer to the usb_interface that is being deregistered
.RE
.PP
\fIclass_driver\fR
.RS 4
pointer to the usb_class_driver for this device
.RE
.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 removes the usb class device from the sysfs tree\&.
.PP
This should be called by all drivers that use the USB major number\&.
.SH "COPYRIGHT"
.br
