Skip to content

Commit

Permalink
VIDEO: cyberpro: remove useless function extreg pointers
Browse files Browse the repository at this point in the history
Sub-drivers can call these functions directly, there's no need for
this kind of indirection.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King committed Feb 11, 2011
1 parent 24d6e5c commit ef299df
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
2 changes: 0 additions & 2 deletions drivers/video/cyber2000fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1144,8 +1144,6 @@ int cyber2000fb_attach(struct cyberpro_info *info, int idx)
info->irq = int_cfb_info->irq;
info->fb = int_cfb_info->fb.screen_base;
info->fb_size = int_cfb_info->fb.fix.smem_len;
info->enable_extregs = cyber2000fb_enable_extregs;
info->disable_extregs = cyber2000fb_disable_extregs;
info->info = int_cfb_info;

strlcpy(info->dev_name, int_cfb_info->fb.fix.id,
Expand Down
9 changes: 0 additions & 9 deletions drivers/video/cyber2000fb.h
Original file line number Diff line number Diff line change
Expand Up @@ -480,15 +480,6 @@ struct cyberpro_info {
* is within this structure.
*/
struct cfb_info *info;

/*
* Use these to enable the BM or TV registers. In an SMP
* environment, these two function pointers should only be
* called from the module_init() or module_exit()
* functions.
*/
void (*enable_extregs)(struct cfb_info *);
void (*disable_extregs)(struct cfb_info *);
};

#define ID_IGA_1682 0
Expand Down

0 comments on commit ef299df

Please sign in to comment.