]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/dispnv04: Remove runtime PM
authorLyude Paul <lyude@redhat.com>
Wed, 7 Aug 2019 23:47:05 +0000 (19:47 -0400)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 23 Aug 2019 02:55:34 +0000 (12:55 +1000)
commitffe71ea5a5731fb91b1f20bef3a18c23c2ec7e94
tree42446e1bc00bcf169fa23d838612950f89de6285
parentd67333170ade3d7d9bc29928b4fbd3acc82d74fe
drm/nouveau/dispnv04: Remove runtime PM

Originally when trying to fix the issue of runtime PM references with
non-blocking CRTCs on nv50, I ended up stumbling on this code when
trying to remove nouveau_drm->have_disp_power_ref, and attempted to fix
it to remove the dependency on have_disp_power_ref. However, Ilia Mirkin
pointed out that this code is actually completely useless, as pre-nv50
never had runtime PM support in the first place! Go figure.

So, since it's useless just get rid of it. Note that since the only
thing nouveau_crtc_set_config() was doing was grabbing a runtime PM ref,
calling drm_crtc_helper_set_config() then dropping the ref; we can just
remove the function entirely and just call drm_crtc_helper_set_config()
directly.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/dispnv04/crtc.c