Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
ebf644c4
Commit
ebf644c4
authored
Jul 25, 2006
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Driver core: change mem class_devices to be real devices
Signed-off-by:
Greg Kroah-Hartman
<
gregkh@suse.de
>
parent
78cde088
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/char/mem.c
drivers/char/mem.c
+4
-4
No files found.
drivers/char/mem.c
View file @
ebf644c4
...
@@ -980,10 +980,10 @@ static int __init chr_dev_init(void)
...
@@ -980,10 +980,10 @@ static int __init chr_dev_init(void)
mem_class
=
class_create
(
THIS_MODULE
,
"mem"
);
mem_class
=
class_create
(
THIS_MODULE
,
"mem"
);
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
devlist
);
i
++
)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
devlist
);
i
++
)
class_
device_create
(
mem_class
,
NULL
,
device_create
(
mem_class
,
NULL
,
MKDEV
(
MEM_MAJOR
,
devlist
[
i
].
minor
),
MKDEV
(
MEM_MAJOR
,
devlist
[
i
].
minor
),
NULL
,
devlist
[
i
].
name
);
devlist
[
i
].
name
);
return
0
;
return
0
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment