Lorenzo Pieralisi ec40c606c7 mfd: Check ACPI device companion before checking resources
Current code in mfd-core calls into ACPI to check resources even
on a system that booted with a DT (on kernels with both DT and ACPI
support compiled in). This triggers ACPI exceptions since we may
end up calling the ACPI interpreter when it has not been initialized:

"ACPI Exception: AE_BAD_PARAMETER, Thread 2064154624 could not acquire
Mutex [0x1] (20150410/utmutex-285)"

This patch fixes the issues by adding a check for an ACPI companion
device before carrying out ACPI resources checks to avoid calling
the ACPI interpreter if the fwnode representing the device is an OF one.

Cc: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
2015-06-22 12:25:17 +01:00
..
2014-03-19 08:58:37 +00:00
2014-11-25 16:18:43 +00:00
2015-05-13 16:26:34 +01:00
2014-06-06 12:08:39 -07:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00
2014-10-15 06:58:16 +02:00
2015-04-09 10:25:54 +01:00
2015-03-26 14:20:18 +00:00
2015-03-03 16:41:21 +00:00
2013-04-09 12:18:16 +02:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2013-07-31 13:01:29 +01:00