|
@@ -1797,16 +1797,10 @@ build_dsdt(GArray *table_data, BIOSLinker *linker,
|
|
|
|
|
|
sb_scope = aml_scope("\\_SB");
|
|
sb_scope = aml_scope("\\_SB");
|
|
{
|
|
{
|
|
- Object *pci_host;
|
|
|
|
- PCIBus *bus = NULL;
|
|
|
|
-
|
|
|
|
- pci_host = acpi_get_i386_pci_host();
|
|
|
|
|
|
+ Object *pci_host = acpi_get_i386_pci_host();
|
|
|
|
|
|
if (pci_host) {
|
|
if (pci_host) {
|
|
- bus = PCI_HOST_BRIDGE(pci_host)->bus;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- if (bus) {
|
|
|
|
|
|
+ PCIBus *bus = PCI_HOST_BRIDGE(pci_host)->bus;
|
|
Aml *scope = aml_scope("PCI0");
|
|
Aml *scope = aml_scope("PCI0");
|
|
/* Scan all PCI buses. Generate tables to support hotplug. */
|
|
/* Scan all PCI buses. Generate tables to support hotplug. */
|
|
build_append_pci_bus_devices(scope, bus, pm->pcihp_bridge_en);
|
|
build_append_pci_bus_devices(scope, bus, pm->pcihp_bridge_en);
|