Commit c2a353d4 authored by James Simmons's avatar James Simmons

More STI updates.

parent 5e2bc458
......@@ -83,8 +83,6 @@ extern struct sti_struct *sti_init_roms(void);
there's no other way for stifb to find it. */
extern struct sti_struct *default_sti;
extern struct display_switch fbcon_sti; /* fbcon-sti.c */
int sti_init_graph(struct sti_struct *sti);
void sti_inq_conf(struct sti_struct *sti);
void sti_putc(struct sti_struct *sti, int c, int y, int x);
......
......@@ -58,17 +58,13 @@
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/tty.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/fb.h>
#include <linux/init.h>
#include <linux/selection.h>
#include <linux/ioport.h>
#include <linux/pci.h>
#include "console/fbcon.h"
#include <asm/grfioctl.h> /* for HP-UX compatibility */
#include "sticore.h"
......@@ -113,7 +109,6 @@ struct stifb_info {
ngle_rom_t ngle_rom;
struct sti_struct *sti;
int deviceSpecificConfig;
struct display disp;
};
static int stifb_force_bpp[MAX_STI_ROMS] = {0, };
......@@ -897,7 +892,11 @@ stifb_setcolreg(u_int regno, u_int red, u_int green,
if (regno >= 256) /* no. of hw registers */
return 1;
red >>= 8;
green >>= 8;
blue >>= 8;
START_IMAGE_COLORMAP_ACCESS(fb);
if (fb->info.var.grayscale) {
......@@ -1042,7 +1041,6 @@ stifb_init_fb(struct sti_struct *sti, int force_bpp)
{
struct fb_fix_screeninfo *fix;
struct fb_var_screeninfo *var;
struct display *disp;
struct stifb_info *fb;
struct fb_info *info;
unsigned long sti_rom_address;
......@@ -1061,7 +1059,6 @@ stifb_init_fb(struct sti_struct *sti, int force_bpp)
memset(fb, 0, sizeof(*fb));
fix = &info->fix;
var = &info->var;
disp = &fb->disp;
fb->sti = sti;
/* store upper 32bits of the graphics id */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment