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
43593507
Commit
43593507
authored
Mar 25, 2003
by
Patrick Mochel
Browse files
Options
Browse Files
Download
Plain Diff
Merge osdl.org:/home/mochel/src/kernel/devel/linux-2.5-virgin
into osdl.org:/home/mochel/src/kernel/devel/linux-2.5-core
parents
2f9d6b21
f7bb3f9b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
10 deletions
+18
-10
drivers/base/base.h
drivers/base/base.h
+0
-2
drivers/base/cpu.c
drivers/base/cpu.c
+5
-2
drivers/base/driver.c
drivers/base/driver.c
+1
-0
drivers/base/memblk.c
drivers/base/memblk.c
+6
-3
drivers/base/node.c
drivers/base/node.c
+6
-3
No files found.
drivers/base/base.h
View file @
43593507
#undef DEBUG
extern
struct
semaphore
device_sem
;
extern
struct
semaphore
devclass_sem
;
...
...
drivers/base/cpu.c
View file @
43593507
...
...
@@ -48,6 +48,9 @@ int __init register_cpu(struct cpu *cpu, int num, struct node *root)
int
__init
cpu_dev_init
(
void
)
{
devclass_register
(
&
cpu_devclass
);
return
driver_register
(
&
cpu_driver
);
int
error
;
if
(
!
(
error
=
devclass_register
(
&
cpu_devclass
)))
if
(
error
=
driver_register
(
&
cpu_driver
))
devclass_unregister
(
&
cpu_devclass
);
return
error
;
}
drivers/base/driver.c
View file @
43593507
...
...
@@ -82,6 +82,7 @@ void put_driver(struct device_driver * drv)
int
driver_register
(
struct
device_driver
*
drv
)
{
INIT_LIST_HEAD
(
&
drv
->
devices
);
INIT_LIST_HEAD
(
&
drv
->
class_list
);
init_MUTEX_LOCKED
(
&
drv
->
unload_sem
);
return
bus_add_driver
(
drv
);
}
...
...
drivers/base/memblk.c
View file @
43593507
...
...
@@ -47,9 +47,12 @@ int __init register_memblk(struct memblk *memblk, int num, struct node *root)
}
static
int
__init
register_memblk_type
(
void
)
int
__init
register_memblk_type
(
void
)
{
int
error
=
devclass_register
(
&
memblk_devclass
);
return
error
?
error
:
driver_register
(
&
memblk_driver
);
int
error
;
if
(
!
(
error
=
devclass_register
(
&
memblk_devclass
)))
if
(
error
=
driver_register
(
&
memblk_driver
))
devclass_unregister
(
&
memblk_devclass
);
return
error
;
}
postcore_initcall
(
register_memblk_type
);
drivers/base/node.c
View file @
43593507
...
...
@@ -89,9 +89,12 @@ int __init register_node(struct node *node, int num, struct node *parent)
}
static
int
__init
register_node_type
(
void
)
int
__init
register_node_type
(
void
)
{
int
error
=
devclass_register
(
&
node_devclass
);
return
error
?
error
:
driver_register
(
&
node_driver
);
int
error
;
if
(
!
(
error
=
devclass_register
(
&
node_devclass
)))
if
(
error
=
driver_register
(
&
node_driver
))
devclass_unregister
(
&
node_devclass
);
return
error
;
}
postcore_initcall
(
register_node_type
);
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