ACPI / resources: Use AE_CTRL_TERMINATE to terminate resources walks
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 16 Nov 2012 20:55:48 +0000 (21:55 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 16 Nov 2012 20:55:48 +0000 (21:55 +0100)
commit8a66790b7850a6669129af078768a1d42076a0ef
tree909b3cb9e23198edca48c38942583b6e6aee04f8
parent8e345c991c8c7a3c081199ef77deada79e37618a
ACPI / resources: Use AE_CTRL_TERMINATE to terminate resources walks

Currently acpi_dev_process_resource() returns AE_ABORT_METHOD
to terminate the acpi_walk_resources() it is called from if
the .preproc() routine provided by the caller of
acpi_dev_get_resources() initiating the resources walk returns
an error code.  It is better to use AE_CTRL_TERMINATE for this
purpose, however, so do that.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/acpi/resource.c