drm: Move locking into drm_debugfs_crtc_crc_add
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Mon, 2 Jan 2017 12:59:09 +0000 (13:59 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 5 Jan 2017 08:53:06 +0000 (09:53 +0100)
commit1aa81be3af121636824e40eec737706e62c9da0c
tree8151cf7dae481fee82fd09d49844532bbbb7f9ec
parent88017bd06e74c82dd0b953e3766ec0d1e3c8d63c
drm: Move locking into drm_debugfs_crtc_crc_add

There's no reason any more for callers of this function to take the lock
themselves, so just move the lock to the function to avoid confusion and
bugs when more callers are contributed.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Robert Foss <robert.foss@collabora.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20170102125912.22305-2-tomeu.vizoso@collabora.com
drivers/gpu/drm/drm_debugfs_crc.c