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
c03239b7
Commit
c03239b7
authored
Mar 28, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://ldm.bkbits.net/linux-2.5-core
into home.transmeta.com:/home/torvalds/v2.5/linux
parents
c87aba22
26701026
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
20 additions
and
12 deletions
+20
-12
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
fs/sysfs/inode.c
fs/sysfs/inode.c
+1
-1
include/linux/device.h
include/linux/device.h
+1
-1
No files found.
drivers/base/base.h
View file @
c03239b7
#undef DEBUG
extern
struct
semaphore
device_sem
;
extern
struct
semaphore
device_sem
;
extern
struct
semaphore
devclass_sem
;
extern
struct
semaphore
devclass_sem
;
...
...
drivers/base/cpu.c
View file @
c03239b7
...
@@ -48,6 +48,9 @@ int __init register_cpu(struct cpu *cpu, int num, struct node *root)
...
@@ -48,6 +48,9 @@ int __init register_cpu(struct cpu *cpu, int num, struct node *root)
int
__init
cpu_dev_init
(
void
)
int
__init
cpu_dev_init
(
void
)
{
{
devclass_register
(
&
cpu_devclass
);
int
error
;
return
driver_register
(
&
cpu_driver
);
if
(
!
(
error
=
devclass_register
(
&
cpu_devclass
)))
if
((
error
=
driver_register
(
&
cpu_driver
)))
devclass_unregister
(
&
cpu_devclass
);
return
error
;
}
}
drivers/base/driver.c
View file @
c03239b7
...
@@ -82,6 +82,7 @@ void put_driver(struct device_driver * drv)
...
@@ -82,6 +82,7 @@ void put_driver(struct device_driver * drv)
int
driver_register
(
struct
device_driver
*
drv
)
int
driver_register
(
struct
device_driver
*
drv
)
{
{
INIT_LIST_HEAD
(
&
drv
->
devices
);
INIT_LIST_HEAD
(
&
drv
->
devices
);
INIT_LIST_HEAD
(
&
drv
->
class_list
);
init_MUTEX_LOCKED
(
&
drv
->
unload_sem
);
init_MUTEX_LOCKED
(
&
drv
->
unload_sem
);
return
bus_add_driver
(
drv
);
return
bus_add_driver
(
drv
);
}
}
...
...
drivers/base/memblk.c
View file @
c03239b7
...
@@ -47,9 +47,12 @@ int __init register_memblk(struct memblk *memblk, int num, struct node *root)
...
@@ -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
);
int
error
;
return
error
?
error
:
driver_register
(
&
memblk_driver
);
if
(
!
(
error
=
devclass_register
(
&
memblk_devclass
)))
if
(
error
=
driver_register
(
&
memblk_driver
))
devclass_unregister
(
&
memblk_devclass
);
return
error
;
}
}
postcore_initcall
(
register_memblk_type
);
postcore_initcall
(
register_memblk_type
);
drivers/base/node.c
View file @
c03239b7
...
@@ -89,9 +89,12 @@ int __init register_node(struct node *node, int num, struct node *parent)
...
@@ -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
);
int
error
;
return
error
?
error
:
driver_register
(
&
node_driver
);
if
(
!
(
error
=
devclass_register
(
&
node_devclass
)))
if
(
error
=
driver_register
(
&
node_driver
))
devclass_unregister
(
&
node_devclass
);
return
error
;
}
}
postcore_initcall
(
register_node_type
);
postcore_initcall
(
register_node_type
);
fs/sysfs/inode.c
View file @
c03239b7
...
@@ -97,7 +97,7 @@ void sysfs_hash_and_remove(struct dentry * dir, const char * name)
...
@@ -97,7 +97,7 @@ void sysfs_hash_and_remove(struct dentry * dir, const char * name)
atomic_read
(
&
victim
->
d_count
));
atomic_read
(
&
victim
->
d_count
));
simple_unlink
(
dir
->
d_inode
,
victim
);
simple_unlink
(
dir
->
d_inode
,
victim
);
d_delete
(
victim
);
}
}
/*
/*
* Drop reference from sysfs_get_dentry() above.
* Drop reference from sysfs_get_dentry() above.
...
...
include/linux/device.h
View file @
c03239b7
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
#define DEVICE_NAME_SIZE 50
#define DEVICE_NAME_SIZE 50
#define DEVICE_NAME_HALF __stringify(20)
/* Less than half to accommodate slop */
#define DEVICE_NAME_HALF __stringify(20)
/* Less than half to accommodate slop */
#define DEVICE_ID_SIZE 32
#define DEVICE_ID_SIZE 32
#define BUS_ID_SIZE
16
#define BUS_ID_SIZE
20
enum
{
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