]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / power: Remove useless message from device registering routine
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 26 Dec 2012 12:26:46 +0000 (13:26 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 3 Jan 2013 12:10:22 +0000 (13:10 +0100)
commitab63f5e4e056d3b0ce65ea691adf89d11626f3c4
tree9eb2134794edfc62a0436fc96376d6e73067005d
parent3aaf18bae6b8380365f0b40a45952806738ac2e0
ACPI / power: Remove useless message from device registering routine

After commit 935c0a2 (PCI/ACPI: Notify PCI devices when their power
resource is turned on) made acpi_pci_bind() call
acpi_power_resource_register_device(), the debug message at the end
of the latter appears in the kernel log for every PCI device that
doesn't happen to have power resources assigned (which is the vast
majority of them).  However, this message is totally useless, because
it doesn't even say which device it is about.  Moreover, it is
misleading, because it only means that the given device has no power
resources, which isn't exceptional at all.

Remove that useless message altogether and simplify
acpi_power_resource_register_device() slightly.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/power.c