1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>usb_deregister</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="The Linux-USB Host Side API"><link rel="up" href="usbcore.html" title="Chapter 5. USB Core APIs"><link rel="prev" href="API-usb-register-driver.html" title="usb_register_driver"><link rel="next" href="API-usb-enable-autosuspend.html" title="usb_enable_autosuspend"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">usb_deregister</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-usb-register-driver.html">Prev</a> </td><th width="60%" align="center">Chapter 5. USB Core APIs</th><td width="20%" align="right"> <a accesskey="n" href="API-usb-enable-autosuspend.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-usb-deregister"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>usb_deregister — 2 unregister a USB interface driver 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">void <b class="fsfunc">usb_deregister </b>(</code></td><td>struct usb_driver * <var class="pdparam">driver</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1116382484"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>driver</code></em></span></dt><dd><p> 4 USB operations of the interface driver to unregister 5 </p></dd></dl></div></div><div class="refsect1"><a name="idp1116384084"></a><h2>Context</h2><p> 6 must be able to sleep 7</p></div><div class="refsect1"><a name="idp1116384660"></a><h2>Description</h2><p> 8 Unlinks the specified driver from the internal USB driver list. 9</p></div><div class="refsect1"><a name="idp1116385316"></a><h2>NOTE</h2><p> 10 If you called <code class="function">usb_register_dev</code>, you still need to call 11 <code class="function">usb_deregister_dev</code> to clean up your driver's allocated minor numbers, 12 this * call will no longer do it for you. 13</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-usb-register-driver.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="usbcore.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-usb-enable-autosuspend.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">usb_register_driver</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">usb_enable_autosuspend</span></td></tr></table></div></body></html> 14