summaryrefslogtreecommitdiffstats
path: root/include/acpi
diff options
context:
space:
mode:
authorAndy Shevchenko2015-08-10 18:56:46 +0200
committerRafael J. Wysocki2015-08-26 01:46:39 +0200
commit4bf011815f2e093c7f60004f4f5683cf40b905b9 (patch)
tree5195f134c30f92f343baa053c533d4a2429b99bb /include/acpi
parentdevice property: attach 'else if' to the proper 'if' (diff)
downloadkernel-qcow2-linux-4bf011815f2e093c7f60004f4f5683cf40b905b9.tar.gz
kernel-qcow2-linux-4bf011815f2e093c7f60004f4f5683cf40b905b9.tar.xz
kernel-qcow2-linux-4bf011815f2e093c7f60004f4f5683cf40b905b9.zip
device property: check fwnode type in to_of_node()
Potentially one of platform can support both ACPI and OF. In that case when we call to_of_node() for non-OF fwnode types we will get non-NULL result, which is wrong. Check for the type and return a correspondent result. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/acpi')
0 files changed, 0 insertions, 0 deletions