Comment 19 for bug 261318

Revision history for this message
Dana Goyette (danagoyette) wrote :

After a lot of searching, I managed to find the Ubuntu-patched toshiba_acpi source; for some reason, neither the linux-source package, nor the source (apt-get source) for linux-image-2.6.27-7-generic contained the current 0.19a-dev version of the toshiba_acpi module. In fact, the Ubuntu patches also haven't reached upstream, either.

In order to get toshiba_acpi to compile on the 2.6.27-7-generic kernel, I had to comment out the following line (somewhere around 697), and thus disable the compatibility layer that utilities such as toshset use. This function call (to a function that no longer exists) will need to be converted into some current equivalent. Building the module out-of-tree also requires a bit of hacking at the .config file, and at parameters passed to the kbuild system.

static int __init
old_driver_emulation_init(void)
{
        int status;
        void __iomem *bios = ioremap(0xf0000, 0x10000);
        if (!bios)
                return -ENOMEM;

        if ((status = misc_register(&tosh_device))) {
                printk(MY_ERR "failed to register misc device %d (\"%s\")\n",
                        tosh_device.minor, tosh_device.name);
                return status;
        }

        setup_tosh_info(bios);
/* had to comment this out: create_proc_info_entry(OLD_PROC_TOSHIBA, 0, NULL, tosh_get_info); */

        iounmap(bios);

        return 0;
}