diff options
Diffstat (limited to 'drivers/acpi/scan.c')
-rw-r--r-- | drivers/acpi/scan.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 0476e90b2091..40d80ac0552f 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c | |||
@@ -922,6 +922,7 @@ static void acpi_device_release(struct device *dev) | |||
922 | { | 922 | { |
923 | struct acpi_device *acpi_dev = to_acpi_device(dev); | 923 | struct acpi_device *acpi_dev = to_acpi_device(dev); |
924 | 924 | ||
925 | acpi_free_properties(acpi_dev); | ||
925 | acpi_free_pnp_ids(&acpi_dev->pnp); | 926 | acpi_free_pnp_ids(&acpi_dev->pnp); |
926 | acpi_free_power_resources_lists(acpi_dev); | 927 | acpi_free_power_resources_lists(acpi_dev); |
927 | kfree(acpi_dev); | 928 | kfree(acpi_dev); |
@@ -1926,6 +1927,7 @@ void acpi_init_device_object(struct acpi_device *device, acpi_handle handle, | |||
1926 | acpi_set_device_status(device, sta); | 1927 | acpi_set_device_status(device, sta); |
1927 | acpi_device_get_busid(device); | 1928 | acpi_device_get_busid(device); |
1928 | acpi_set_pnp_ids(handle, &device->pnp, type); | 1929 | acpi_set_pnp_ids(handle, &device->pnp, type); |
1930 | acpi_init_properties(device); | ||
1929 | acpi_bus_get_flags(device); | 1931 | acpi_bus_get_flags(device); |
1930 | device->flags.match_driver = false; | 1932 | device->flags.match_driver = false; |
1931 | device->flags.initialized = true; | 1933 | device->flags.initialized = true; |