drm/msm: reset devfreq freq_table/max_state before devfreq_add_device
authorJonathan Marek <jonathan@marek.ca>
Mon, 13 Jul 2020 22:53:41 +0000 (18:53 -0400)
committerRob Clark <robdclark@chromium.org>
Thu, 30 Jul 2020 20:44:52 +0000 (13:44 -0700)
commit0ded520b182e13277e1076f84ca16247eb9bf150
treefb6a42be1eb6c49c9626c08db4389334a93d8a2e
parent17e822f7591fb66162aca07685dc0b01468e5480
drm/msm: reset devfreq freq_table/max_state before devfreq_add_device

These never get set back to 0 when probing fails, so an attempt to probe
again results in broken behavior. Fix the problem by setting thse to zero
before they are used.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/msm_gpu.c