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
76db1db5
Commit
76db1db5
authored
Sep 19, 2003
by
Vojtech Pavlik
Committed by
Linus Torvalds
Sep 19, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Fix a warning in input.c when CONFIG_PROC_FS is not set
parent
c33725ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
11 deletions
+16
-11
drivers/input/input.c
drivers/input/input.c
+16
-11
No files found.
drivers/input/input.c
View file @
76db1db5
...
...
@@ -676,20 +676,10 @@ static int input_handlers_read(char *buf, char **start, off_t pos, int count, in
return
(
count
>
cnt
)
?
cnt
:
count
;
}
#endif
struct
class
input_class
=
{
.
name
=
"input"
,
};
static
int
__init
input_init
(
void
)
static
int
__init
input_proc_init
(
void
)
{
struct
proc_dir_entry
*
entry
;
int
retval
=
-
ENOMEM
;
class_register
(
&
input_class
);
#ifdef CONFIG_PROC_FS
proc_bus_input_dir
=
proc_mkdir
(
"input"
,
proc_bus
);
if
(
proc_bus_input_dir
==
NULL
)
return
-
ENOMEM
;
...
...
@@ -708,7 +698,22 @@ static int __init input_init(void)
return
-
ENOMEM
;
}
entry
->
owner
=
THIS_MODULE
;
return
0
;
}
#else
/* !CONFIG_PROC_FS */
static
inline
int
input_proc_init
(
void
)
{
return
0
;
}
#endif
struct
class
input_class
=
{
.
name
=
"input"
,
};
static
int
__init
input_init
(
void
)
{
int
retval
=
-
ENOMEM
;
class_register
(
&
input_class
);
input_proc_init
();
retval
=
register_chrdev
(
INPUT_MAJOR
,
"input"
,
&
input_fops
);
if
(
retval
)
{
printk
(
KERN_ERR
"input: unable to register char major %d"
,
INPUT_MAJOR
);
...
...
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