diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2009-09-21 19:30:11 +0000 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-09-25 14:24:32 -0400 |
commit | e3b87f8a9d5a61f6367c66d1bb0a4e19d251194d (patch) | |
tree | 9054b93f90f9de3b536f656727c947c1d34b4519 /drivers/pnp | |
parent | 778cbc1d3abd434b6d882714630235e3711bb15b (diff) | |
download | linux-3.10-e3b87f8a9d5a61f6367c66d1bb0a4e19d251194d.tar.gz linux-3.10-e3b87f8a9d5a61f6367c66d1bb0a4e19d251194d.tar.bz2 linux-3.10-e3b87f8a9d5a61f6367c66d1bb0a4e19d251194d.zip |
ACPI: handle re-enumeration, when acpi_devices might already exist
acpi_bus_scan() traverses the namespace to enumerate devices and uses
acpi_add_single_object() to create acpi_devices. When the platform
notifies us of a hot-plug event, we need to traverse part of the namespace
again to figure out what appeared or disappeared. (We don't yet call
acpi_bus_scan() during hot-plug, but I plan to do that in the future.)
This patch makes acpi_add_single_object() notice when we already have
an acpi_device, so we don't need to make a new one.
Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/pnp')
0 files changed, 0 insertions, 0 deletions