fix minor typos in 04-CharacterDeviceFiles.sgml

This commit is contained in:
Jason Leschnik 2016-10-24 23:24:29 +11:00
parent 7d49e03708
commit 1522b3f973
1 changed files with 2 additions and 2 deletions

View File

@ -138,7 +138,7 @@
number will be. There are a couple of ways to do this. First, the driver itself can print the newly assigned number and
we can make the device file by hand. Second, the newly registered device will have an entry in
<filename>/proc/devices</filename>, and we can either make the device file by hand or write a shell script to read the
file in and make the device file. The third method is we can have our driver make the the device file using the
file in and make the device file. The third method is we can have our driver make the device file using the
<function>mknod</function> system call after a successful registration and rm during the call to
<function>cleanup_module</function>.</para>
@ -303,7 +303,7 @@ static int device_release(struct inode *inode, struct file *file)
Device_Open --; /* We're now ready for our next caller */
/* Decrement the usage count, or else once you opened the file, you'll
never get get rid of the module. */
never get rid of the module. */
MOD_DEC_USE_COUNT;
return 0;