ACPI / property: Fix subnode lookup scope for data-only subnodes
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 20 Oct 2015 16:32:27 +0000 (18:32 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 21 Oct 2015 22:54:03 +0000 (00:54 +0200)
commit205ad97fc5a6386214323641dd28b822cb6fc624
treee16c2fce56e62fad04e2910d58608ee25a02bde3
parent3f4232ee8b53cf2266d227af299aa511d2d91d11
ACPI / property: Fix subnode lookup scope for data-only subnodes

The correct scope for looking up the objects to generate data packages for
data-only subnodes pointed to by another data-only subnode is the scope
of the parent of that subnode and not the scope containing the _DSD object
at the top of the hierarchy (the latter works only if all of the objects
returning data-only subnode packages in a given hierarchy are in the same
scope).

Fix the code to work as expected.

Fixes: 445b0eb058f5 (ACPI / property: Add support for data-only subnodes)
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/acpi/property.c