diff options
Diffstat (limited to 'drivers/acpi/ec.c')
-rw-r--r-- | drivers/acpi/ec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index 4178d17aa0ed..40fefba6264e 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c | |||
@@ -799,7 +799,7 @@ static int acpi_ec_add(struct acpi_device *device) | |||
799 | 799 | ||
800 | if (!first_ec) | 800 | if (!first_ec) |
801 | first_ec = ec; | 801 | first_ec = ec; |
802 | acpi_driver_data(device) = ec; | 802 | device->driver_data = ec; |
803 | acpi_ec_add_fs(device); | 803 | acpi_ec_add_fs(device); |
804 | pr_info(PREFIX "GPE = 0x%lx, I/O: command/status = 0x%lx, data = 0x%lx\n", | 804 | pr_info(PREFIX "GPE = 0x%lx, I/O: command/status = 0x%lx, data = 0x%lx\n", |
805 | ec->gpe, ec->command_addr, ec->data_addr); | 805 | ec->gpe, ec->command_addr, ec->data_addr); |
@@ -824,7 +824,7 @@ static int acpi_ec_remove(struct acpi_device *device, int type) | |||
824 | } | 824 | } |
825 | mutex_unlock(&ec->lock); | 825 | mutex_unlock(&ec->lock); |
826 | acpi_ec_remove_fs(device); | 826 | acpi_ec_remove_fs(device); |
827 | acpi_driver_data(device) = NULL; | 827 | device->driver_data = NULL; |
828 | if (ec == first_ec) | 828 | if (ec == first_ec) |
829 | first_ec = NULL; | 829 | first_ec = NULL; |
830 | kfree(ec); | 830 | kfree(ec); |