VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Chengguang Xu <cgxu519@gmx.com> 2019-02-15 20:27:14 +0800 committer: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2019-04-02 17:49:58 +0200 commit: d358b1733fc33d9f0261ce07c3d328787652245d parent: 4b0be572603233b4240f6072f0bd35542d311ed8
Commit Summary:
chardev: update comment based on the code
Diffstat:
1 file changed, 3 insertions, 6 deletions
diff --git a/fs/char_dev.c b/fs/char_dev.c
index bd2bf1fd847e..d18cad28c1c3 100644
--- a/fs/char_dev.c
+++ b/fs/char_dev.c
@@ -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,