android_kernel_samsung_a7y1.../drivers/devfreq
Leonard Crestez a19794450b PM / devfreq: Don't fail devfreq_dev_release if not in list
[ Upstream commit 42a6b25e67df6ee6675e8d1eaf18065bd73328ba ]

Right now devfreq_dev_release will print a warning and abort the rest of
the cleanup if the devfreq instance is not part of the global
devfreq_list. But this is a valid scenario, for example it can happen if
the governor can't be found or on any other init error that happens
after device_register.

Initialize devfreq->node to an empty list head in devfreq_add_device so
that list_del becomes a safe noop inside devfreq_dev_release and we can
continue the rest of the cleanup.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-07 13:24:09 +02:00
..
event A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
exynos A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
devfreq-event.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
devfreq.c PM / devfreq: Don't fail devfreq_dev_release if not in list 2020-04-07 13:24:09 +02:00
governor_performance.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
governor_powersave.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
governor_simpleexynos.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
governor_simpleinteractive.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
governor_simpleondemand.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
governor_simpleusage.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
governor_userspace.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
governor.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tegra-devfreq.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30