]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ACPI: acpiphp: Remove dmesg spam on device remove
authorGary Hade <garyhade@us.ibm.com>
Tue, 20 Nov 2007 20:19:12 +0000 (12:19 -0800)
committerLen Brown <len.brown@intel.com>
Wed, 21 Nov 2007 00:06:04 +0000 (19:06 -0500)
In cases where acpi_pci_bind() does not
attach device data, acpi_pci_unbind()
complains via an ACPI exception about the missing data when
the device is removed.  For example, acpi_pci_bind() does not
attach data for non-existent device functions so when the device
is removed using the ACPI PCI hotplug driver 'acpiphp' an ACPI
exception is logged for every non-existent function.  This patch
avoids the confusing log messages by removing the unnecessary
ACPI exception.

Signed-off-by: Gary Hade <garyhade@us.ibm.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/pci_bind.c

index 028969370bbf821d9c015353f5d0d69b0cebc2c9..388300de005d37df692f142649e0e1a1ab75d9c0 100644 (file)
@@ -294,9 +294,6 @@ int acpi_pci_unbind(struct acpi_device *device)
            acpi_get_data(device->handle, acpi_pci_data_handler,
                          (void **)&data);
        if (ACPI_FAILURE(status)) {
-               ACPI_EXCEPTION((AE_INFO, status,
-                               "Unable to get data from device %s",
-                               acpi_device_bid(device)));
                result = -ENODEV;
                goto end;
        }