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
fd7e8816
Commit
fd7e8816
authored
May 26, 2017
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hpfb: use probe_kernel_read()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
2ea659a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
drivers/video/fbdev/hpfb.c
drivers/video/fbdev/hpfb.c
+1
-5
No files found.
drivers/video/fbdev/hpfb.c
View file @
fd7e8816
...
@@ -377,7 +377,6 @@ static struct dio_driver hpfb_driver = {
...
@@ -377,7 +377,6 @@ static struct dio_driver hpfb_driver = {
int
__init
hpfb_init
(
void
)
int
__init
hpfb_init
(
void
)
{
{
unsigned
int
sid
;
unsigned
int
sid
;
mm_segment_t
fs
;
unsigned
char
i
;
unsigned
char
i
;
int
err
;
int
err
;
...
@@ -402,10 +401,7 @@ int __init hpfb_init(void)
...
@@ -402,10 +401,7 @@ int __init hpfb_init(void)
if
(
err
)
if
(
err
)
return
err
;
return
err
;
fs
=
get_fs
();
err
=
probe_kernel_read
(
&
i
,
(
unsigned
char
*
)
INTFBVADDR
+
DIO_IDOFF
,
1
);
set_fs
(
KERNEL_DS
);
err
=
get_user
(
i
,
(
unsigned
char
*
)
INTFBVADDR
+
DIO_IDOFF
);
set_fs
(
fs
);
if
(
!
err
&&
(
i
==
DIO_ID_FBUFFER
)
&&
topcat_sid_ok
(
sid
=
DIO_SECID
(
INTFBVADDR
)))
{
if
(
!
err
&&
(
i
==
DIO_ID_FBUFFER
)
&&
topcat_sid_ok
(
sid
=
DIO_SECID
(
INTFBVADDR
)))
{
if
(
!
request_mem_region
(
INTFBPADDR
,
DIO_DEVSIZE
,
"Internal Topcat"
))
if
(
!
request_mem_region
(
INTFBPADDR
,
DIO_DEVSIZE
,
"Internal Topcat"
))
...
...
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