scan.c (805d410fb0dbd65e1a57a810858fa2491e75822d) | scan.c (92ef2a25c763338905dce8344a0584606f842920) |
---|---|
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> --- 1817 unchanged lines hidden (view full) --- 1826 1827 result = bus_register(&acpi_bus_type); 1828 if (result) { 1829 /* We don't want to quit even if we failed to add suspend/resume */ 1830 printk(KERN_ERR PREFIX "Could not register bus type\n"); 1831 } 1832 1833 acpi_power_init(); | 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> --- 1817 unchanged lines hidden (view full) --- 1826 1827 result = bus_register(&acpi_bus_type); 1828 if (result) { 1829 /* We don't want to quit even if we failed to add suspend/resume */ 1830 printk(KERN_ERR PREFIX "Could not register bus type\n"); 1831 } 1832 1833 acpi_power_init(); |
1834 acpi_pci_root_init(); |
|
1834 1835 /* 1836 * Enumerate devices in the ACPI namespace. 1837 */ 1838 result = acpi_bus_scan(ACPI_ROOT_OBJECT, &ops, &acpi_root); 1839 1840 if (!result) 1841 result = acpi_bus_scan_fixed(); 1842 1843 if (result) 1844 acpi_device_unregister(acpi_root, ACPI_BUS_REMOVAL_NORMAL); 1845 else 1846 acpi_update_all_gpes(); 1847 1848 return result; 1849} | 1835 1836 /* 1837 * Enumerate devices in the ACPI namespace. 1838 */ 1839 result = acpi_bus_scan(ACPI_ROOT_OBJECT, &ops, &acpi_root); 1840 1841 if (!result) 1842 result = acpi_bus_scan_fixed(); 1843 1844 if (result) 1845 acpi_device_unregister(acpi_root, ACPI_BUS_REMOVAL_NORMAL); 1846 else 1847 acpi_update_all_gpes(); 1848 1849 return result; 1850} |