---
name: "usb_deregister_dev"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/usb_deregister_dev"
---

# usb\_deregister\_dev(9)

deregister a USB device's dynamic minor.

## NAME

usb\_deregister\_dev - deregister a USB device's dynamic minor.

## SYNOPSIS

**void usb\_deregister\_dev(struct usb\_interface \*** *intf***, struct usb\_class\_driver \*** *class\_driver***);**

## ARGUMENTS

*intf*

pointer to the usb\_interface that is being deregistered

*class\_driver*

pointer to the usb\_class\_driver for this device

## DESCRIPTION

Used in conjunction with **usb\_register\_dev**. This function is called when the USB driver is finished with the minor numbers gotten from a call to **usb\_register\_dev** (usually when the device is disconnected from the system.)

This function also removes the usb class device from the sysfs tree.

This should be called by all drivers that use the USB major number.

## COPYRIGHT
