From: Lorenzo Pieralisi Date: Fri, 1 May 2015 09:41:10 +0000 (+0100) Subject: mfd: Check ACPI device companion before checking resources X-Git-Tag: omap-for-v4.2/fixes-rc1^2~144^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec40c606c7aebb8d61cb47af27e2f62c26e09e29;p=pandora-kernel.git 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 Signed-off-by: Lorenzo Pieralisi Signed-off-by: Lee Jones --- Reading git-diff-tree failed