Skip to content

Commit 4c27963

Browse files
sjp38dbaluta
authored andcommitted
Documentation/device_model: Fix bex_misc probe test instruction
Even though the probe from 'bex_misc' fails, the device is added. Therefore, following the test instruction of creating device of name 'test' again fails, as the same name device is already created. This commit updates the instruction to use different name, 'test2' for second try. Signed-off-by: SeongJae Park <sj38.park@gmail.com>
1 parent 3430959 commit 4c27963

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/teaching/labs/device_model.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,10 +1259,10 @@ defined misc device in ``bex_misc_probe`` and deregister it in
12591259

12601260
Create a new device with the name "test", type "misc" and version 2
12611261
and observe that the probe fails. Create a new device with the name
1262-
"test", type "misc" and version 1 and observe that the probe is
1262+
"test2", type "misc" and version 1 and observe that the probe is
12631263
successful.
12641264

1265-
Inspect ``/sys/bus/bex/devices/test`` and observe that we have a new
1265+
Inspect ``/sys/bus/bex/devices/test2`` and observe that we have a new
12661266
entry. Identify the major and minor for the misc device, create a
12671267
character device file and try to read and write from the misc device
12681268
buffer.

0 commit comments

Comments
 (0)