PM / devfreq: exynos-bus: Disable devfreq-event device when fails
authorYangtao Li <tiny.windzz@gmail.com>
Sun, 22 Dec 2019 17:41:32 +0000 (17:41 +0000)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 30 Dec 2019 00:59:06 +0000 (09:59 +0900)
commit6c315d8fe3c931e1f2e7c34c8d81d6016db8f978
tree127184e947f2532ac9eb9bcf434fa04b498cb552
parent39a6e4739c19d5334e552d71ceca544ed84f4b87
PM / devfreq: exynos-bus: Disable devfreq-event device when fails

The exynos_bus_profile_init process may fail, but the devfreq event device
remains enabled. Call devfreq_event_disable_edev on the error return path.

Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/devfreq/exynos-bus.c