]> git.baikalelectronics.ru Git - kernel.git/commit
PCI/ACPI: Handle PCI slot devices when creating/destroying PCI buses
authorJiang Liu <liuj97@gmail.com>
Fri, 12 Apr 2013 05:44:24 +0000 (05:44 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 12 Apr 2013 21:38:25 +0000 (15:38 -0600)
commit1578d8a30f642d8d03da9870b59583389a516499
tree04abbfcaeb1ada556460702b55fd24ffd349127e
parent99df7139873117f22861b9f2db5cff92b220c8ec
PCI/ACPI: Handle PCI slot devices when creating/destroying PCI buses

Currently the pci_slot driver doesn't update PCI slot devices when PCI
device hotplug event happens, which may cause memory leak and returning
stale information to user.

Now the pci_slot driver has been changed as built-in driver, so invoke
PCI slot enumeration and destroy routines directly from the PCI core.
And remove ACPI PCI sub-driver related code because it isn't needed
any more.

[bhelgas: removed "extern" from function declarations]
Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Yinghai Lu <yinghai@kernel.org>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Cc: Toshi Kani <toshi.kani@hp.com>
drivers/acpi/pci_slot.c
drivers/acpi/scan.c
drivers/pci/pci-acpi.c
include/linux/pci-acpi.h