X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=drivers%2Facpi%2Fbattery.c;h=b2133e89ad9a6debafa3dbad49cf998daad80ec7;hb=7decd1cb0305b97243f283fa7f4baf5fe613edeb;hp=70f7f60929ca552f87dfa819dd93296abd3cea60;hpb=ed402af3c23a4804b3f8899263e8d0f97c62ab49;p=linux-2.6-omap-h63xx.git diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c index 70f7f60929c..b2133e89ad9 100644 --- a/drivers/acpi/battery.c +++ b/drivers/acpi/battery.c @@ -804,7 +804,7 @@ static int acpi_battery_add(struct acpi_device *device) battery->device = device; strcpy(acpi_device_name(device), ACPI_BATTERY_DEVICE_NAME); strcpy(acpi_device_class(device), ACPI_BATTERY_CLASS); - acpi_driver_data(device) = battery; + device->driver_data = battery; mutex_init(&battery->lock); acpi_battery_update(battery); #ifdef CONFIG_ACPI_PROCFS_POWER