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
5781aaf2
Commit
5781aaf2
authored
Dec 03, 2002
by
Alexander Viro
Committed by
Linus Torvalds
Dec 03, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] ip2 cleanup
switched to devfs_remove(), killed gratitious devfs_handle_t fields.
parent
62e492d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
21 deletions
+7
-21
drivers/char/ip2/i2ellis.h
drivers/char/ip2/i2ellis.h
+0
-6
drivers/char/ip2main.c
drivers/char/ip2main.c
+7
-15
No files found.
drivers/char/ip2/i2ellis.h
View file @
5781aaf2
...
...
@@ -405,12 +405,6 @@ typedef struct _i2eBordStr
struct
timer_list
SendPendingTimer
;
// Used by iiSendPending
unsigned
int
SendPendingRetry
;
#ifdef CONFIG_DEVFS_FS
/* Device handles into devfs */
devfs_handle_t
devfs_ipl_handle
;
devfs_handle_t
devfs_stat_handle
;
#endif
}
i2eBordStr
,
*
i2eBordStrPtr
;
//-------------------------------------------------------------------
...
...
drivers/char/ip2main.c
View file @
5781aaf2
...
...
@@ -510,10 +510,8 @@ cleanup_module(void)
iiResetDelay
(
i2BoardPtrTable
[
i
]
);
/* free io addresses and Tibet */
release_region
(
ip2config
.
addr
[
i
],
8
);
#ifdef CONFIG_DEVFS_FS
devfs_unregister
(
i2BoardPtrTable
[
i
]
->
devfs_ipl_handle
);
devfs_unregister
(
i2BoardPtrTable
[
i
]
->
devfs_stat_handle
);
#endif
devfs_remove
(
"ip2/ipl%d"
,
i
);
devfs_remove
(
"ip2/stat%d"
,
i
);
}
/* Disable and remove interrupt handler. */
if
(
(
ip2config
.
irq
[
i
]
>
0
)
&&
have_requested_irq
(
ip2config
.
irq
[
i
])
)
{
...
...
@@ -521,6 +519,7 @@ cleanup_module(void)
clear_requested_irq
(
ip2config
.
irq
[
i
]);
}
}
devfs_remove
(
"ip2"
);
if
(
(
err
=
tty_unregister_driver
(
&
ip2_tty_driver
)
)
)
{
printk
(
KERN_ERR
"IP2: failed to unregister tty driver (%d)
\n
"
,
err
);
}
...
...
@@ -574,7 +573,6 @@ int
ip2_loadmain
(
int
*
iop
,
int
*
irqp
,
unsigned
char
*
firmware
,
int
firmsize
)
{
#ifdef CONFIG_DEVFS_FS
static
devfs_handle_t
devfs_handle
;
int
j
,
box
;
#endif
int
i
;
...
...
@@ -869,10 +867,6 @@ ip2_loadmain(int *iop, int *irqp, unsigned char *firmware, int firmsize)
/* Register the interrupt handler or poll handler, depending upon the
* specified interrupt.
*/
#ifdef CONFIG_DEVFS_FS
if
(
!
devfs_handle
)
devfs_handle
=
devfs_mk_dir
(
NULL
,
"ip2"
,
NULL
);
#endif
for
(
i
=
0
;
i
<
IP2_MAX_BOARDS
;
++
i
)
{
#ifdef CONFIG_DEVFS_FS
...
...
@@ -885,17 +879,15 @@ ip2_loadmain(int *iop, int *irqp, unsigned char *firmware, int firmsize)
#ifdef CONFIG_DEVFS_FS
if
(
NULL
!=
(
pB
=
i2BoardPtrTable
[
i
]
)
)
{
sprintf
(
name
,
"ipl%d"
,
i
);
pB
->
devfs_ipl_handle
=
devfs_register
(
devfs_handle
,
name
,
sprintf
(
name
,
"ip2/ipl%d"
,
i
);
devfs_register
(
NULL
,
name
,
DEVFS_FL_DEFAULT
,
IP2_IPL_MAJOR
,
4
*
i
,
S_IRUSR
|
S_IWUSR
|
S_IRGRP
|
S_IFCHR
,
&
ip2_ipl
,
NULL
);
sprintf
(
name
,
"stat%d"
,
i
);
pB
->
devfs_stat_handle
=
devfs_register
(
devfs_handle
,
name
,
sprintf
(
name
,
"ip2/stat%d"
,
i
);
devfs_register
(
NULL
,
name
,
DEVFS_FL_DEFAULT
,
IP2_IPL_MAJOR
,
4
*
i
+
1
,
S_IRUSR
|
S_IWUSR
|
S_IRGRP
|
S_IFCHR
,
...
...
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