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)
committerJyri Sarha <jsarha@ti.com>
Fri, 4 Jan 2019 16:01:58 +0000 (18:01 +0200)
commit432973fd3a20102840d5f7e61af9f1a03c217a4c
treec49469f4145b81ebe1ecb7ab8a81c2c870842c74
parent8fe28cb58bcb235034b64cbbb7550a8a43fd88be
drm/tilcdc: Register cpufreq notifier after we have initialized crtc

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>
drivers/gpu/drm/tilcdc/tilcdc_drv.c