drm/tilcdc: Register cpufreq notifier after we have initialized crtc
authorJyri Sarha <jsarha@ti.com>
Wed, 12 Dec 2018 17:26:32 +0000 (19:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Sep 2019 08:20:49 +0000 (10:20 +0200)
commit0d9b9e89ae5a1aa20141fe41c3709149113c4b02
tree817fd43bf46da143d258b6fd8977cbabf9677ed0
parent99ab76dd3cc573315b7f4c287592ebd371daed38
drm/tilcdc: Register cpufreq notifier after we have initialized crtc

[ Upstream commit 432973fd3a20102840d5f7e61af9f1a03c217a4c ]

Register cpufreq notifier after we have initialized the crtc and
unregister it before we remove the ctrc. Receiving a cpufreq notify
without crtc causes a crash.

Reported-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Jyri Sarha <jsarha@ti.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/tilcdc/tilcdc_drv.c