]> git.ipfire.org Git - people/ms/linux.git/blobdiff - fs/char_dev.c
chardev: update comment based on the code
[people/ms/linux.git] / fs / char_dev.c
index bd2bf1fd847e43495e499091db9df1d071579bdf..d18cad28c1c3a0af802c4c35775582996000f664 100644 (file)
@@ -88,13 +88,10 @@ static int find_dynamic_major(void)
 /*
  * Register a single major with a specified minor range.
  *
- * If major == 0 this functions will dynamically allocate a major and return
- * its number.
- *
- * If major > 0 this function will attempt to reserve the passed range of
- * minors and will return zero on success.
+ * If major == 0 this function will dynamically allocate an unused major.
+ * If major > 0 this function will attempt to reserve the range of minors
+ * with given major.
  *
- * Returns a -ve errno on failure.
  */
 static struct char_device_struct *
 __register_chrdev_region(unsigned int major, unsigned int baseminor,