ACPI / PM: Do not refcount power resources that can't be turned on
authorRafael J. Wysocki <rjw@sisk.pl>
Wed, 24 Nov 2010 23:03:32 +0000 (00:03 +0100)
committerLen Brown <len.brown@intel.com>
Wed, 1 Dec 2010 21:53:39 +0000 (16:53 -0500)
commit12b3b5afed67e08aa641d30e57df20dab2e33432
tree426ff6eb6f25ff8a3641ce74f597d44536034c64
parent212967c69afd348342548272aedbe4d46a9325d6
ACPI / PM: Do not refcount power resources that can't be turned on

If turning on a power resource fails, do not reference count it,
since it cannot be in use in that case.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/power.c