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
dcaf9fd7
Commit
dcaf9fd7
authored
Dec 04, 2002
by
James Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Synced to Linus BK tree.
parent
102349c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
15 deletions
+8
-15
drivers/video/console/fbcon.c
drivers/video/console/fbcon.c
+1
-1
drivers/video/fbmem.c
drivers/video/fbmem.c
+7
-14
No files found.
drivers/video/console/fbcon.c
View file @
dcaf9fd7
...
...
@@ -220,7 +220,7 @@ static void fbcon_vbl_detect(int irq, void *dummy, struct pt_regs *fp)
static
void
cursor_timer_handler
(
unsigned
long
dev_addr
);
static
struct
timer_list
cursor_timer
=
TIMER_INITIALIZER
(
cursor_timer_handler
,
0
,
0
);
TIMER_INITIALIZER
(
cursor_timer_handler
,
0
,
0
);
static
void
cursor_timer_handler
(
unsigned
long
dev_addr
)
{
...
...
drivers/video/fbmem.c
View file @
dcaf9fd7
...
...
@@ -768,9 +768,6 @@ static struct file_operations fb_fops = {
#endif
};
static
devfs_handle_t
devfs_handle
;
/**
* register_framebuffer - registers a frame buffer device
* @fb_info: frame buffer info structure
...
...
@@ -784,7 +781,7 @@ static devfs_handle_t devfs_handle;
int
register_framebuffer
(
struct
fb_info
*
fb_info
)
{
char
name_buf
[
8
];
char
name_buf
[
12
];
int
i
;
if
(
num_registered_fb
==
FB_MAX
)
...
...
@@ -795,11 +792,10 @@ register_framebuffer(struct fb_info *fb_info)
break
;
fb_info
->
node
=
mk_kdev
(
FB_MAJOR
,
i
);
registered_fb
[
i
]
=
fb_info
;
sprintf
(
name_buf
,
"%d"
,
i
);
fb_info
->
devfs_handle
=
devfs_register
(
devfs_handle
,
name_buf
,
DEVFS_FL_DEFAULT
,
FB_MAJOR
,
i
,
S_IFCHR
|
S_IRUGO
|
S_IWUGO
,
&
fb_fops
,
NULL
);
sprintf
(
name_buf
,
"fb/%d"
,
i
);
devfs_register
(
NULL
,
name_buf
,
DEVFS_FL_DEFAULT
,
FB_MAJOR
,
i
,
S_IFCHR
|
S_IRUGO
|
S_IWUGO
,
&
fb_fops
,
NULL
);
return
0
;
}
...
...
@@ -822,10 +818,7 @@ unregister_framebuffer(struct fb_info *fb_info)
i
=
minor
(
fb_info
->
node
);
if
(
!
registered_fb
[
i
])
return
-
EINVAL
;
devfs_unregister
(
fb_info
->
devfs_handle
);
fb_info
->
devfs_handle
=
NULL
;
devfs_unregister
(
fb_info
->
devfs_lhandle
);
fb_info
->
devfs_lhandle
=
NULL
;
devfs_remove
(
"fb/%d"
,
i
);
registered_fb
[
i
]
=
NULL
;
num_registered_fb
--
;
return
0
;
...
...
@@ -848,7 +841,7 @@ fbmem_init(void)
create_proc_read_entry
(
"fb"
,
0
,
0
,
fbmem_read_proc
,
NULL
);
devfs_
handle
=
devfs_mk_dir
(
NULL
,
"fb"
,
NULL
);
devfs_
mk_dir
(
NULL
,
"fb"
,
NULL
);
if
(
register_chrdev
(
FB_MAJOR
,
"fb"
,
&
fb_fops
))
printk
(
"unable to get major %d for fb devs
\n
"
,
FB_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