Skip to content

Commit d92fcd1

Browse files
authored
Merge pull request #248 from vax-r/Fix_typos
Fix typo
2 parents 6640ccd + a700043 commit d92fcd1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/hello-sysfs.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ static int __init mymodule_init(void)
3434
{
3535
int error = 0;
3636

37-
pr_info("mymodule: initialised\n");
37+
pr_info("mymodule: initialized\n");
3838

3939
mymodule = kobject_create_and_add("mymodule", kernel_kobj);
4040
if (!mymodule)

lkmpg.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ \subsection{Registering A Device}
10521052
\end{code}
10531053

10541054
The choice between two different functions depends on whether you know the major numbers for your device.
1055-
Using \cpp|register_chrdev_region| if you know the device major number and \cpp|alloc_chrdev_region| if you would like to allocate a dynamicly-allocated major number.
1055+
Using \cpp|register_chrdev_region| if you know the device major number and \cpp|alloc_chrdev_region| if you would like to allocate a dynamically-allocated major number.
10561056

10571057
Second, we should initialize the data structure \cpp|struct cdev| for our char device and associate it with the device numbers.
10581058
To initialize the \cpp|struct cdev|, we can achieve by the similar sequence of the following codes.

0 commit comments

Comments
 (0)