scan.c (ebc01f593b58e1896150fc2e3cbdd0116323c52c) | scan.c (ffdcd955c3078af3ce117edcfce80fde1a512bed) |
---|---|
1/* 2 * scan.c - support for transforming the ACPI namespace into individual objects 3 */ 4 5#include <linux/module.h> 6#include <linux/init.h> 7#include <linux/slab.h> 8#include <linux/kernel.h> --- 908 unchanged lines hidden (view full) --- 917 acpi_power_resources_list_free(&ps->resources); 918 } 919} 920 921static void acpi_device_release(struct device *dev) 922{ 923 struct acpi_device *acpi_dev = to_acpi_device(dev); 924 | 1/* 2 * scan.c - support for transforming the ACPI namespace into individual objects 3 */ 4 5#include <linux/module.h> 6#include <linux/init.h> 7#include <linux/slab.h> 8#include <linux/kernel.h> --- 908 unchanged lines hidden (view full) --- 917 acpi_power_resources_list_free(&ps->resources); 918 } 919} 920 921static void acpi_device_release(struct device *dev) 922{ 923 struct acpi_device *acpi_dev = to_acpi_device(dev); 924 |
925 acpi_free_properties(acpi_dev); |
|
925 acpi_free_pnp_ids(&acpi_dev->pnp); 926 acpi_free_power_resources_lists(acpi_dev); 927 kfree(acpi_dev); 928} 929 930static int acpi_bus_match(struct device *dev, struct device_driver *drv) 931{ 932 struct acpi_device *acpi_dev = to_acpi_device(dev); --- 988 unchanged lines hidden (view full) --- 1921{ 1922 INIT_LIST_HEAD(&device->pnp.ids); 1923 device->device_type = type; 1924 device->handle = handle; 1925 device->parent = acpi_bus_get_parent(handle); 1926 acpi_set_device_status(device, sta); 1927 acpi_device_get_busid(device); 1928 acpi_set_pnp_ids(handle, &device->pnp, type); | 926 acpi_free_pnp_ids(&acpi_dev->pnp); 927 acpi_free_power_resources_lists(acpi_dev); 928 kfree(acpi_dev); 929} 930 931static int acpi_bus_match(struct device *dev, struct device_driver *drv) 932{ 933 struct acpi_device *acpi_dev = to_acpi_device(dev); --- 988 unchanged lines hidden (view full) --- 1922{ 1923 INIT_LIST_HEAD(&device->pnp.ids); 1924 device->device_type = type; 1925 device->handle = handle; 1926 device->parent = acpi_bus_get_parent(handle); 1927 acpi_set_device_status(device, sta); 1928 acpi_device_get_busid(device); 1929 acpi_set_pnp_ids(handle, &device->pnp, type); |
1930 acpi_init_properties(device); |
|
1929 acpi_bus_get_flags(device); 1930 device->flags.match_driver = false; 1931 device->flags.initialized = true; 1932 device->flags.visited = false; 1933 device_initialize(&device->dev); 1934 dev_set_uevent_suppress(&device->dev, true); 1935} 1936 --- 451 unchanged lines hidden --- | 1931 acpi_bus_get_flags(device); 1932 device->flags.match_driver = false; 1933 device->flags.initialized = true; 1934 device->flags.visited = false; 1935 device_initialize(&device->dev); 1936 dev_set_uevent_suppress(&device->dev, true); 1937} 1938 --- 451 unchanged lines hidden --- |