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
415db1e8
Commit
415db1e8
authored
Aug 14, 2003
by
Randy Dunlap
Committed by
Linus Torvalds
Aug 14, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] janitor: use request_module()
From: Domen Puncer <domen@coderock.org>
parent
5f49a784
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
16 deletions
+7
-16
fs/char_dev.c
fs/char_dev.c
+1
-3
net/ipv4/ipvs/ip_vs_sched.c
net/ipv4/ipvs/ip_vs_sched.c
+1
-3
sound/core/timer.c
sound/core/timer.c
+5
-10
No files found.
fs/char_dev.c
View file @
415db1e8
...
@@ -456,9 +456,7 @@ void cdev_init(struct cdev *cdev, struct file_operations *fops)
...
@@ -456,9 +456,7 @@ void cdev_init(struct cdev *cdev, struct file_operations *fops)
static
struct
kobject
*
base_probe
(
dev_t
dev
,
int
*
part
,
void
*
data
)
static
struct
kobject
*
base_probe
(
dev_t
dev
,
int
*
part
,
void
*
data
)
{
{
char
name
[
30
];
request_module
(
"char-major-%d"
,
MAJOR
(
dev
));
sprintf
(
name
,
"char-major-%d"
,
MAJOR
(
dev
));
request_module
(
name
);
return
NULL
;
return
NULL
;
}
}
...
...
net/ipv4/ipvs/ip_vs_sched.c
View file @
415db1e8
...
@@ -157,9 +157,7 @@ struct ip_vs_scheduler *ip_vs_scheduler_get(const char *sched_name)
...
@@ -157,9 +157,7 @@ struct ip_vs_scheduler *ip_vs_scheduler_get(const char *sched_name)
* If scheduler not found, load the module and search again
* If scheduler not found, load the module and search again
*/
*/
if
(
sched
==
NULL
)
{
if
(
sched
==
NULL
)
{
char
module_name
[
IP_VS_SCHEDNAME_MAXLEN
+
8
];
request_module
(
"ip_vs_%s"
,
sched_name
);
sprintf
(
module_name
,
"ip_vs_%s"
,
sched_name
);
request_module
(
module_name
);
sched
=
ip_vs_sched_getbyname
(
sched_name
);
sched
=
ip_vs_sched_getbyname
(
sched_name
);
}
}
...
...
sound/core/timer.c
View file @
415db1e8
...
@@ -148,24 +148,19 @@ static snd_timer_t *snd_timer_find(snd_timer_id_t *tid)
...
@@ -148,24 +148,19 @@ static snd_timer_t *snd_timer_find(snd_timer_id_t *tid)
static
void
snd_timer_request
(
snd_timer_id_t
*
tid
)
static
void
snd_timer_request
(
snd_timer_id_t
*
tid
)
{
{
char
str
[
32
];
switch
(
tid
->
dev_class
)
{
switch
(
tid
->
dev_class
)
{
case
SNDRV_TIMER_CLASS_GLOBAL
:
case
SNDRV_TIMER_CLASS_GLOBAL
:
if
(
tid
->
device
>=
timer_limit
)
if
(
tid
->
device
<
timer_limit
)
return
;
request_module
(
"snd-timer-%i"
,
tid
->
device
);
sprintf
(
str
,
"snd-timer-%i"
,
tid
->
device
);
break
;
break
;
case
SNDRV_TIMER_CLASS_CARD
:
case
SNDRV_TIMER_CLASS_CARD
:
case
SNDRV_TIMER_CLASS_PCM
:
case
SNDRV_TIMER_CLASS_PCM
:
if
(
tid
->
card
>=
snd_ecards_limit
)
if
(
tid
->
card
<
snd_ecards_limit
)
return
;
request_module
(
"snd-card-%i"
,
tid
->
card
);
sprintf
(
str
,
"snd-card-%i"
,
tid
->
card
);
break
;
break
;
default:
default:
return
;
break
;
}
}
request_module
(
str
);
}
}
#endif
#endif
...
...
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