Modular i810fb broken, partial fix

From: Bernhard Rosenkraenzer
Date: Fri Oct 07 2005 - 08:48:19 EST


Hi,
i810fb as a module is broken (checked with 2.6.13-mm3 and 2.6.14-rc2-mm1).
It compiles, but the module doesn't actually load because the kernel doesn't
recognize the hardware (the MODULE_DEVICE_TABLE statement is missing).

The attached patch fixes this.

However, the resulting module still doesn't work.
It loads, and then garbles the display (black screen with a couple of yellow
lines, no matter what is written into the framebuffer device).

Related .config entries:
CONFIG_I2C_I810=m
CONFIG_FB_I810=m
CONFIG_FB_I810_GTF=y
CONFIG_FB_I810_I2C=y
--- linux-2.6.13/drivers/video/i810/i810_main.c.ark 2005-09-13 00:31:37.000000000 +0200
+++ linux-2.6.13/drivers/video/i810/i810_main.c 2005-09-13 00:31:54.000000000 +0200
@@ -83,6 +83,8 @@
{ 0 },
};

+MODULE_DEVICE_TABLE(pci, i810fb_pci_tbl);
+
static struct pci_driver i810fb_driver = {
.name = "i810fb",
.id_table = i810fb_pci_tbl,