[ltp] Re: ibm-acpi 0.11 and Ubuntu Breezy???
Shannon McMackin
linux-thinkpad@linux-thinkpad.org
Sun, 11 Sep 2005 14:06:11 -0400
Christopher Sawtell wrote:
> On Sat, 10 Sep 2005 14:57, Shannon McMackin wrote:
>
>>I'm trying to upgrade ibm-acpi on my breezy install and am having some
>>difficulty.
>
>
> Apply attached tiddly patch, and re-compile.
>
>
>
> ------------------------------------------------------------------------
>
> Common subdirectories: ibm-acpi-0.11/config and ibm-acpi-0.11a/config
> diff -C 4 ibm-acpi-0.11/ibm_acpi.c ibm-acpi-0.11a/ibm_acpi.c
> *** ibm-acpi-0.11/ibm_acpi.c Thu Mar 17 23:06:16 2005
> --- ibm-acpi-0.11a/ibm_acpi.c Sat Sep 10 16:24:53 2005
> ***************
> *** 1751,1759 ****
>
> return 0;
> }
>
> ! static int device_add(struct acpi_device *device)
> {
> return 0;
> }
>
> --- 1751,1759 ----
>
> return 0;
> }
>
> ! static int ibm_acpi_device_add(struct acpi_device *device)
> {
> return 0;
> }
>
> ***************
> *** 1769,1777 ****
>
> memset(ibm->driver, 0, sizeof(struct acpi_driver));
> sprintf(ibm->driver->name, "%s/%s", IBM_NAME, ibm->name);
> ibm->driver->ids = ibm->hid;
> ! ibm->driver->ops.add = &device_add;
>
> ret = acpi_bus_register_driver(ibm->driver);
> if (ret < 0) {
> printk(IBM_ERR "acpi_bus_register_driver(%s) failed: %d\n",
> --- 1769,1777 ----
>
> memset(ibm->driver, 0, sizeof(struct acpi_driver));
> sprintf(ibm->driver->name, "%s/%s", IBM_NAME, ibm->name);
> ibm->driver->ids = ibm->hid;
> ! ibm->driver->ops.add = &ibm_acpi_device_add;
>
> ret = acpi_bus_register_driver(ibm->driver);
> if (ret < 0) {
> printk(IBM_ERR "acpi_bus_register_driver(%s) failed: %d\n",
Works great...
Thanks
Shannon