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
nexedi
linux
Commits
1d4a1554
Commit
1d4a1554
authored
Mar 05, 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
441875b2
91fb20f6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
11 deletions
+6
-11
drivers/base/platform.c
drivers/base/platform.c
+2
-5
drivers/cpufreq/userspace.c
drivers/cpufreq/userspace.c
+2
-2
fs/filesystems.c
fs/filesystems.c
+1
-3
fs/sysfs/mount.c
fs/sysfs/mount.c
+1
-1
No files found.
drivers/base/platform.c
View file @
1d4a1554
...
@@ -59,12 +59,9 @@ void platform_device_unregister(struct platform_device * pdev)
...
@@ -59,12 +59,9 @@ void platform_device_unregister(struct platform_device * pdev)
static
int
platform_match
(
struct
device
*
dev
,
struct
device_driver
*
drv
)
static
int
platform_match
(
struct
device
*
dev
,
struct
device_driver
*
drv
)
{
{
char
name
[
BUS_ID_SIZE
]
;
struct
platform_device
*
pdev
=
container_of
(
dev
,
struct
platform_device
,
dev
)
;
if
(
sscanf
(
dev
->
bus_id
,
"%s"
,
name
))
return
(
strncmp
(
pdev
->
name
,
drv
->
name
,
BUS_ID_SIZE
)
==
0
);
return
(
strcmp
(
name
,
drv
->
name
)
==
0
);
return
0
;
}
}
struct
bus_type
platform_bus_type
=
{
struct
bus_type
platform_bus_type
=
{
...
...
drivers/cpufreq/userspace.c
View file @
1d4a1554
...
@@ -511,7 +511,7 @@ static int cpufreq_governor_userspace(struct cpufreq_policy *policy,
...
@@ -511,7 +511,7 @@ static int cpufreq_governor_userspace(struct cpufreq_policy *policy,
cpu_min_freq
[
cpu
]
=
policy
->
min
;
cpu_min_freq
[
cpu
]
=
policy
->
min
;
cpu_max_freq
[
cpu
]
=
policy
->
max
;
cpu_max_freq
[
cpu
]
=
policy
->
max
;
cpu_cur_freq
[
cpu
]
=
policy
->
cur
;
cpu_cur_freq
[
cpu
]
=
policy
->
cur
;
device_create_file
(
policy
->
intf
.
dev
,
&
dev_attr_scaling_setspeed
);
device_create_file
(
policy
->
dev
,
&
dev_attr_scaling_setspeed
);
memcpy
(
&
current_policy
[
cpu
],
policy
,
sizeof
(
struct
cpufreq_policy
));
memcpy
(
&
current_policy
[
cpu
],
policy
,
sizeof
(
struct
cpufreq_policy
));
up
(
&
userspace_sem
);
up
(
&
userspace_sem
);
break
;
break
;
...
@@ -520,7 +520,7 @@ static int cpufreq_governor_userspace(struct cpufreq_policy *policy,
...
@@ -520,7 +520,7 @@ static int cpufreq_governor_userspace(struct cpufreq_policy *policy,
cpu_is_managed
[
cpu
]
=
0
;
cpu_is_managed
[
cpu
]
=
0
;
cpu_min_freq
[
cpu
]
=
0
;
cpu_min_freq
[
cpu
]
=
0
;
cpu_max_freq
[
cpu
]
=
0
;
cpu_max_freq
[
cpu
]
=
0
;
device_remove_file
(
policy
->
intf
.
dev
,
&
dev_attr_scaling_setspeed
);
device_remove_file
(
policy
->
dev
,
&
dev_attr_scaling_setspeed
);
up
(
&
userspace_sem
);
up
(
&
userspace_sem
);
module_put
(
THIS_MODULE
);
module_put
(
THIS_MODULE
);
break
;
break
;
...
...
fs/filesystems.c
View file @
1d4a1554
...
@@ -125,9 +125,7 @@ int register_filesystem(struct file_system_type * fs)
...
@@ -125,9 +125,7 @@ int register_filesystem(struct file_system_type * fs)
if
(
!
res
)
{
if
(
!
res
)
{
/* we implicitly possess reference to @fs during registration,
/* we implicitly possess reference to @fs during registration,
* so it cannot be unregister from under us. */
* so it cannot be unregister from under us. */
if
(
register_fs_subsys
(
fs
))
register_fs_subsys
(
fs
);
printk
(
KERN_WARNING
"Failed to register '%s' in sysfs
\n
"
,
fs
->
name
);
}
}
return
res
;
return
res
;
}
}
...
...
fs/sysfs/mount.c
View file @
1d4a1554
...
@@ -33,7 +33,7 @@ static int sysfs_fill_super(struct super_block *sb, void *data, int silent)
...
@@ -33,7 +33,7 @@ static int sysfs_fill_super(struct super_block *sb, void *data, int silent)
sb
->
s_op
=
&
sysfs_ops
;
sb
->
s_op
=
&
sysfs_ops
;
sysfs_sb
=
sb
;
sysfs_sb
=
sb
;
inode
=
sysfs_new_inode
(
S_IFDIR
|
S_IR
UGO
|
S_IWUSR
);
inode
=
sysfs_new_inode
(
S_IFDIR
|
S_IR
WXU
|
S_IRUGO
|
S_IXUGO
);
if
(
inode
)
{
if
(
inode
)
{
inode
->
i_op
=
&
simple_dir_inode_operations
;
inode
->
i_op
=
&
simple_dir_inode_operations
;
inode
->
i_fop
=
&
simple_dir_operations
;
inode
->
i_fop
=
&
simple_dir_operations
;
...
...
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