diff options
Diffstat (limited to 'Documentation/DocBook/writing_usb_driver.tmpl')
-rw-r--r-- | Documentation/DocBook/writing_usb_driver.tmpl | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Documentation/DocBook/writing_usb_driver.tmpl b/Documentation/DocBook/writing_usb_driver.tmpl index 008a341234d0..07cd34c1940b 100644 --- a/Documentation/DocBook/writing_usb_driver.tmpl +++ b/Documentation/DocBook/writing_usb_driver.tmpl | |||
@@ -224,13 +224,8 @@ static int skel_probe(struct usb_interface *interface, | |||
224 | Conversely, when the device is removed from the USB bus, the disconnect | 224 | Conversely, when the device is removed from the USB bus, the disconnect |
225 | function is called with the device pointer. The driver needs to clean any | 225 | function is called with the device pointer. The driver needs to clean any |
226 | private data that has been allocated at this time and to shut down any | 226 | private data that has been allocated at this time and to shut down any |
227 | pending urbs that are in the USB system. The driver also unregisters | 227 | pending urbs that are in the USB system. |
228 | itself from the devfs subsystem with the call: | ||
229 | </para> | 228 | </para> |
230 | <programlisting> | ||
231 | /* remove our devfs node */ | ||
232 | devfs_unregister(skel->devfs); | ||
233 | </programlisting> | ||
234 | <para> | 229 | <para> |
235 | Now that the device is plugged into the system and the driver is bound to | 230 | Now that the device is plugged into the system and the driver is bound to |
236 | the device, any of the functions in the file_operations structure that | 231 | the device, any of the functions in the file_operations structure that |