android_kernel_oneplus_msm8998/drivers/devfreq
Gustavo A. R. Silva 1bd2b909fd PM / devfreq: tegra: fix error return code in tegra_devfreq_probe()
[ Upstream commit 9e578b37505018622dfafc40eed7cd78ff2af221 ]

platform_get_irq() returns an error code, but the tegra-devfreq
driver ignores it and always returns -ENODEV. This is not correct,
and prevents -EPROBE_DEFER from being propagated properly.

Notice that platform_get_irq() no longer returns 0 on error:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e330b9a6bb35dc7097a4f02cb1ae7b6f96df92af

Print and propagate the return value of platform_get_irq on failure.

Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2018-11-10 07:41:40 -08:00
..
event PM / devfreq: exynos-ppmu: bit-wise operation bugfix. 2015-09-11 14:22:26 +09:00
exynos devfreq: exynos: drop owner assignment from platform_drivers 2014-10-20 16:20:27 +02:00
devfreq-event.c PM / devfreq: event: Add devfreq_event class 2015-01-30 17:56:40 +09:00
devfreq.c PM / devfreq: Propagate error from devfreq_add_device() 2018-02-22 15:44:58 +01:00
governor.h
governor_performance.c
governor_powersave.c
governor_simpleondemand.c PM / devfreq: cache the last call to get_dev_status() 2015-09-11 14:23:28 +09:00
governor_userspace.c
Kconfig ACPI and power management updates for v3.20-rc1 2015-02-10 15:09:41 -08:00
Makefile devfreq: Fix build break of devfreq-event class 2015-01-30 17:56:41 +09:00
tegra-devfreq.c PM / devfreq: tegra: fix error return code in tegra_devfreq_probe() 2018-11-10 07:41:40 -08:00