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
f1e747ff
Commit
f1e747ff
authored
Jan 05, 2003
by
Michael Still
Committed by
Linus Torvalds
Jan 05, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] misc_register-008-004
parent
7d857c13
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
drivers/char/toshiba.c
drivers/char/toshiba.c
+10
-5
No files found.
drivers/char/toshiba.c
View file @
f1e747ff
...
@@ -474,6 +474,7 @@ int tosh_probe(void)
...
@@ -474,6 +474,7 @@ int tosh_probe(void)
int
__init
tosh_init
(
void
)
int
__init
tosh_init
(
void
)
{
{
int
retval
;
/* are we running on a Toshiba laptop */
/* are we running on a Toshiba laptop */
if
(
tosh_probe
()
!=
0
)
if
(
tosh_probe
()
!=
0
)
...
@@ -483,17 +484,21 @@ int __init tosh_init(void)
...
@@ -483,17 +484,21 @@ int __init tosh_init(void)
TOSH_VERSION
"
\n
"
);
TOSH_VERSION
"
\n
"
);
/* set the port to use for Fn status if not specified as a parameter */
/* set the port to use for Fn status if not specified as a parameter */
if
(
tosh_fn
==
0x00
)
if
(
tosh_fn
==
0x00
)
tosh_set_fn_port
();
tosh_set_fn_port
();
/* register the device file */
/* register the device file */
retval
=
misc_register
(
&
tosh_device
);
if
(
retval
<
0
)
return
retval
;
misc_register
(
&
tosh_device
);
#ifdef CONFIG_PROC_FS
/* register the proc entry */
/* register the proc entry */
if
(
create_proc_info_entry
(
"toshiba"
,
0
,
NULL
,
tosh_get_info
)
==
NULL
){
create_proc_info_entry
(
"toshiba"
,
0
,
NULL
,
tosh_get_info
);
misc_deregister
(
&
tosh_device
);
return
-
ENOMEM
;
}
#endif
return
0
;
return
0
;
}
}
...
...
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