]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: Always check if _PRW is present before trying to evaluate it
authorRafael J. Wysocki <rjw@sisk.pl>
Thu, 6 Jan 2011 22:40:00 +0000 (23:40 +0100)
committerLen Brown <len.brown@intel.com>
Wed, 12 Jan 2011 10:05:50 +0000 (05:05 -0500)
commit3e2cd04893e9e381ba432ea1b14f79cc53e782fb
tree76c00623e695e1ebe65620b1c0b56c86a18609fe
parent4500d6a3f0e59613508677cba95858ac10ca1371
ACPI: Always check if _PRW is present before trying to evaluate it

Before evaluating _PRW for devices that are reported as inactive or
not present by their _STA control methods we should check if those
methods are actually present (otherwise the evaulation of _PRW will
obviously fail and a scary message will be printed unnecessarily).

Reported-by: Andreas Mohr <andi@lisas.de>
Reported-by: Maciej Rutecki <maciej.rutecki@gmail.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/scan.c