From: Zhang Rui Date: Sun, 4 Jan 2015 08:35:59 +0000 (+0800) Subject: int340x_thermal/processor_thermal_device: return failure when X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~289^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad0f409051a67dde8d454990e09b6db41f675876;p=pandora-kernel.git int340x_thermal/processor_thermal_device: return failure when there is no ACPI device object processor_thermal_device driver needs ACPI support to work. Thus, the driver probing should fail when there is no ACPI device object asscociated. This fixes a NULL pointer dereference when the driver is loaded with INT340X feature disabled in BIOS. Reported-by: Chen Yu Signed-off-by: Zhang Rui Tested-by: Chen Yu --- Reading git-diff-tree failed