ACPI: Normalize return value of resource parser functions
authorJiang Liu <jiang.liu@linux.intel.com>
Mon, 2 Feb 2015 02:42:55 +0000 (10:42 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 3 Feb 2015 21:27:19 +0000 (22:27 +0100)
commit581c19f3a72ae9ff7f24f2a6c2e67f269ed4392a
treeb6b9f4713b7f5978d2b0dd1c3005c854c5a51041
parent8515f9368161730655b64ddaf8b11a3d20049610
ACPI: Normalize return value of resource parser functions

Normalize return value of resource parse functions as:
1) return "true" if resource is assigned.
2) return "false" and IORESOURCE_DISABLED setting in res->flags if
   resource is unassigned.
3) return "false" and zeroing res->flags if it's not an valid or
   expected resource.

Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/resource.c