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
d9841db4
Commit
d9841db4
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] ppp cleanup
switched to devfs_remove(), killed gratitious devfs_handle_t variable.
parent
35e65b61
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
drivers/net/ppp_generic.c
drivers/net/ppp_generic.c
+3
-8
No files found.
drivers/net/ppp_generic.c
View file @
d9841db4
...
@@ -776,8 +776,6 @@ static struct file_operations ppp_device_fops = {
...
@@ -776,8 +776,6 @@ static struct file_operations ppp_device_fops = {
#define PPP_MAJOR 108
#define PPP_MAJOR 108
static
devfs_handle_t
devfs_handle
;
/* Called at boot time if ppp is compiled into the kernel,
/* Called at boot time if ppp is compiled into the kernel,
or at module load time (from init_module) if compiled as a module. */
or at module load time (from init_module) if compiled as a module. */
int
__init
ppp_init
(
void
)
int
__init
ppp_init
(
void
)
...
@@ -788,11 +786,8 @@ int __init ppp_init(void)
...
@@ -788,11 +786,8 @@ int __init ppp_init(void)
err
=
register_chrdev
(
PPP_MAJOR
,
"ppp"
,
&
ppp_device_fops
);
err
=
register_chrdev
(
PPP_MAJOR
,
"ppp"
,
&
ppp_device_fops
);
if
(
err
)
if
(
err
)
printk
(
KERN_ERR
"failed to register PPP device (%d)
\n
"
,
err
);
printk
(
KERN_ERR
"failed to register PPP device (%d)
\n
"
,
err
);
devfs_handle
=
devfs_register
(
NULL
,
"ppp"
,
DEVFS_FL_DEFAULT
,
devfs_register
(
NULL
,
"ppp"
,
DEVFS_FL_DEFAULT
,
PPP_MAJOR
,
0
,
PPP_MAJOR
,
0
,
S_IFCHR
|
S_IRUSR
|
S_IWUSR
,
&
ppp_device_fops
,
NULL
);
S_IFCHR
|
S_IRUSR
|
S_IWUSR
,
&
ppp_device_fops
,
NULL
);
return
0
;
return
0
;
}
}
...
@@ -2511,7 +2506,7 @@ static void __exit ppp_cleanup(void)
...
@@ -2511,7 +2506,7 @@ static void __exit ppp_cleanup(void)
cardmap_destroy
(
&
all_ppp_units
);
cardmap_destroy
(
&
all_ppp_units
);
if
(
unregister_chrdev
(
PPP_MAJOR
,
"ppp"
)
!=
0
)
if
(
unregister_chrdev
(
PPP_MAJOR
,
"ppp"
)
!=
0
)
printk
(
KERN_ERR
"PPP: failed to unregister PPP device
\n
"
);
printk
(
KERN_ERR
"PPP: failed to unregister PPP device
\n
"
);
devfs_
unregister
(
devfs_handle
);
devfs_
remove
(
"ppp"
);
}
}
/*
/*
...
...
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