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
205d07a9
Commit
205d07a9
authored
Mar 27, 2003
by
Patrick Mochel
Browse files
Options
Browse Files
Download
Plain Diff
Merge hostme.bitkeeper.com:/ua/repos/l/ldm/linux-2.5
into hostme.bitkeeper.com:/ua/repos/l/ldm/linux-2.5-core
parents
f741fc08
547ac1b0
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
11 deletions
+19
-11
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
include/linux/device.h
include/linux/device.h
+1
-1
No files found.
drivers/base/base.h
View file @
205d07a9
#undef DEBUG
extern
struct
semaphore
device_sem
;
extern
struct
semaphore
devclass_sem
;
...
...
drivers/base/cpu.c
View file @
205d07a9
...
...
@@ -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 @
205d07a9
...
...
@@ -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 @
205d07a9
...
...
@@ -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 @
205d07a9
...
...
@@ -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
);
include/linux/device.h
View file @
205d07a9
...
...
@@ -35,7 +35,7 @@
#define DEVICE_NAME_SIZE 50
#define DEVICE_NAME_HALF __stringify(20)
/* Less than half to accommodate slop */
#define DEVICE_ID_SIZE 32
#define BUS_ID_SIZE
16
#define BUS_ID_SIZE
20
enum
{
...
...
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