]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5d05a235a17494af2e0e77a384000599d51fe027
treefb6a42be1eb6c49c9626c08db4389334a93d8a2e
parentbc038d79801afc34a4a01b46e9e5487acabba99c
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