Docs: usb: update comment and code near increment usage count
[linux-2.6-microblaze.git] / Documentation / driver-api / usb / writing_usb_driver.rst
index 0093dea..a6b11bf 100644 (file)
@@ -170,8 +170,8 @@ structure. This is done so that future calls to file operations will
 enable the driver to determine which device the user is addressing. All
 of this is done with the following code::
 
-    /* increment our usage count for the module */
-    ++skel->open_count;
+    /* increment our usage count for the device */
+    kref_get(&dev->kref);
 
     /* save our object in the file's private structure */
     file->private_data = dev;