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
32f05867
Commit
32f05867
authored
Nov 25, 2002
by
Alan Cox
Committed by
Linus Torvalds
Nov 25, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] fix tpqic02 + tidy it up
parent
e4b0a4f2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
9 deletions
+6
-9
drivers/char/mem.c
drivers/char/mem.c
+0
-3
drivers/char/tpqic02.c
drivers/char/tpqic02.c
+6
-6
No files found.
drivers/char/mem.c
View file @
32f05867
...
@@ -697,9 +697,6 @@ int __init chr_dev_init(void)
...
@@ -697,9 +697,6 @@ int __init chr_dev_init(void)
lp_m68k_init
();
lp_m68k_init
();
#endif
#endif
misc_init
();
misc_init
();
#if CONFIG_QIC02_TAPE
qic02_tape_init
();
#endif
#ifdef CONFIG_FTAPE
#ifdef CONFIG_FTAPE
ftape_init
();
ftape_init
();
#endif
#endif
...
...
drivers/char/tpqic02.c
View file @
32f05867
...
@@ -2759,9 +2759,7 @@ int __init qic02_tape_init(void)
...
@@ -2759,9 +2759,7 @@ int __init qic02_tape_init(void)
return
0
;
return
0
;
}
/* qic02_tape_init */
}
/* qic02_tape_init */
#ifdef MODULE
static
void
qic02_module_exit
(
void
)
void
cleanup_module
(
void
)
{
{
unregister_chrdev
(
QIC02_TAPE_MAJOR
,
TPQIC02_NAME
);
unregister_chrdev
(
QIC02_TAPE_MAJOR
,
TPQIC02_NAME
);
if
(
status_zombie
==
NO
)
if
(
status_zombie
==
NO
)
...
@@ -2777,7 +2775,7 @@ void cleanup_module(void)
...
@@ -2777,7 +2775,7 @@ void cleanup_module(void)
devfs_remove
(
"tpqic150"
);
devfs_remove
(
"tpqic150"
);
}
}
int
init_module
(
void
)
static
int
qic02_module_init
(
void
)
{
{
int
retval
;
int
retval
;
retval
=
qic02_tape_init
();
retval
=
qic02_tape_init
();
...
@@ -2788,12 +2786,14 @@ int init_module(void)
...
@@ -2788,12 +2786,14 @@ int init_module(void)
if
(
!
retval
&&
qic02_tape_dynconf
.
ifc_type
)
{
if
(
!
retval
&&
qic02_tape_dynconf
.
ifc_type
)
{
retval
=
update_ifc_masks
(
qic02_tape_dynconf
.
ifc_type
);
retval
=
update_ifc_masks
(
qic02_tape_dynconf
.
ifc_type
);
if
(
retval
)
{
if
(
retval
)
{
cleanup_module
();
qic02_module_exit
();
}
}
}
}
# endif
# endif
return
retval
;
return
retval
;
}
}
#endif
MODULE_LICENSE
(
"GPL"
);
MODULE_LICENSE
(
"GPL"
);
module_init
(
qic02_module_init
);
module_exit
(
qic02_module_exit
);
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