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
0010ba63
Commit
0010ba63
authored
Apr 16, 2002
by
Tak-Shing Chan
Committed by
Linus Torvalds
Apr 16, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] 1111/1: Re: Anakin framebuffer
Resource accounting fix (Anakin framebuffer).
parent
0c686811
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
drivers/video/anakinfb.c
drivers/video/anakinfb.c
+11
-3
No files found.
drivers/video/anakinfb.c
View file @
0010ba63
...
@@ -180,7 +180,7 @@ anakinfb_init(void)
...
@@ -180,7 +180,7 @@ anakinfb_init(void)
{
{
memset
(
&
fb_info
,
0
,
sizeof
(
struct
fb_info
));
memset
(
&
fb_info
,
0
,
sizeof
(
struct
fb_info
));
strcpy
(
fb_info
.
modename
,
"AnakinFB"
);
strcpy
(
fb_info
.
modename
,
"AnakinFB"
);
fb_info
.
node
=
-
1
;
fb_info
.
node
=
NODEV
;
fb_info
.
flags
=
FBINFO_FLAG_DEFAULT
;
fb_info
.
flags
=
FBINFO_FLAG_DEFAULT
;
fb_info
.
fbops
=
&
anakinfb_ops
;
fb_info
.
fbops
=
&
anakinfb_ops
;
fb_info
.
disp
=
&
display
;
fb_info
.
disp
=
&
display
;
...
@@ -192,7 +192,12 @@ anakinfb_init(void)
...
@@ -192,7 +192,12 @@ anakinfb_init(void)
memset
(
&
display
,
0
,
sizeof
(
struct
display
));
memset
(
&
display
,
0
,
sizeof
(
struct
display
));
anakinfb_get_var
(
&
display
.
var
,
0
,
&
fb_info
);
anakinfb_get_var
(
&
display
.
var
,
0
,
&
fb_info
);
display
.
screen_base
=
ioremap
(
VGA_START
,
VGA_SIZE
);
if
(
!
(
request_mem_region
(
VGA_START
,
VGA_SIZE
,
"vga"
)))
return
-
ENOMEM
;
if
(
!
(
display
.
screen_base
=
ioremap
(
VGA_START
,
VGA_SIZE
)))
{
release_mem_region
(
VGA_START
,
VGA_SIZE
);
return
-
EIO
;
}
display
.
visual
=
FB_VISUAL_TRUECOLOR
;
display
.
visual
=
FB_VISUAL_TRUECOLOR
;
display
.
type
=
FB_TYPE_PACKED_PIXELS
;
display
.
type
=
FB_TYPE_PACKED_PIXELS
;
display
.
type_aux
=
0
;
display
.
type_aux
=
0
;
...
@@ -209,8 +214,11 @@ anakinfb_init(void)
...
@@ -209,8 +214,11 @@ anakinfb_init(void)
display
.
dispsw
=
&
fbcon_dummy
;
display
.
dispsw
=
&
fbcon_dummy
;
#endif
#endif
if
(
register_framebuffer
(
&
fb_info
)
<
0
)
if
(
register_framebuffer
(
&
fb_info
)
<
0
)
{
iounmap
(
display
.
screen_base
);
release_mem_region
(
VGA_START
,
VGA_SIZE
);
return
-
EINVAL
;
return
-
EINVAL
;
}
MOD_INC_USE_COUNT
;
MOD_INC_USE_COUNT
;
return
0
;
return
0
;
...
...
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