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
c62432b4
Commit
c62432b4
authored
Dec 06, 2015
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[mips] switch pvc_proc_cleanup() to remove_proc_subtree()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
b25472f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
arch/mips/lasat/picvue_proc.c
arch/mips/lasat/picvue_proc.c
+6
-12
No files found.
arch/mips/lasat/picvue_proc.c
View file @
c62432b4
...
...
@@ -22,7 +22,6 @@
static
DEFINE_MUTEX
(
pvc_mutex
);
static
char
pvc_lines
[
PVC_NLINES
][
PVC_LINELEN
+
1
];
static
int
pvc_linedata
[
PVC_NLINES
];
static
struct
proc_dir_entry
*
pvc_display_dir
;
static
char
*
pvc_linename
[
PVC_NLINES
]
=
{
"line1"
,
"line2"
};
#define DISPLAY_DIR_NAME "display"
static
int
scroll_dir
,
scroll_interval
;
...
...
@@ -169,22 +168,17 @@ void pvc_proc_timerfunc(unsigned long data)
static
void
pvc_proc_cleanup
(
void
)
{
int
i
;
for
(
i
=
0
;
i
<
PVC_NLINES
;
i
++
)
remove_proc_entry
(
pvc_linename
[
i
],
pvc_display_dir
);
remove_proc_entry
(
"scroll"
,
pvc_display_dir
);
remove_proc_entry
(
DISPLAY_DIR_NAME
,
NULL
);
remove_proc_subtree
(
DISPLAY_DIR_NAME
,
NULL
);
del_timer_sync
(
&
timer
);
}
static
int
__init
pvc_proc_init
(
void
)
{
struct
proc_dir_entry
*
proc_entry
;
struct
proc_dir_entry
*
dir
,
*
proc_entry
;
int
i
;
pvc_display_
dir
=
proc_mkdir
(
DISPLAY_DIR_NAME
,
NULL
);
if
(
pvc_display_
dir
==
NULL
)
dir
=
proc_mkdir
(
DISPLAY_DIR_NAME
,
NULL
);
if
(
dir
==
NULL
)
goto
error
;
for
(
i
=
0
;
i
<
PVC_NLINES
;
i
++
)
{
...
...
@@ -192,12 +186,12 @@ static int __init pvc_proc_init(void)
pvc_linedata
[
i
]
=
i
;
}
for
(
i
=
0
;
i
<
PVC_NLINES
;
i
++
)
{
proc_entry
=
proc_create_data
(
pvc_linename
[
i
],
0644
,
pvc_display_
dir
,
proc_entry
=
proc_create_data
(
pvc_linename
[
i
],
0644
,
dir
,
&
pvc_line_proc_fops
,
&
pvc_linedata
[
i
]);
if
(
proc_entry
==
NULL
)
goto
error
;
}
proc_entry
=
proc_create
(
"scroll"
,
0644
,
pvc_display_
dir
,
proc_entry
=
proc_create
(
"scroll"
,
0644
,
dir
,
&
pvc_scroll_proc_fops
);
if
(
proc_entry
==
NULL
)
goto
error
;
...
...
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