]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: dcn20: include linux/delay.h
authorArnd Bergmann <arnd@arndb.de>
Mon, 8 Jul 2019 13:53:18 +0000 (15:53 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Jul 2019 18:56:27 +0000 (13:56 -0500)
commit6b5047f1d766e44802e26acef2ab229a77ca506a
tree2b5a5d7074f982ec63bd342a6cb6f98ddac6c27e
parent94aa5bcfdbb1f54221a881add040bcb69cfa28ea
drm/amd/display: dcn20: include linux/delay.h

Without this header, we get a compiler error in some configurations:

.../dc/dcn20/dcn20_hwseq.c: In function 'dcn20_hwss_wait_for_blank_complete':
.../dc/dcn20/dcn20_hwseq.c:1493:3: error: implicit declaration of function 'udelay' [-Werror=implicit-function-declaration]

Note: the use of udelay itself may be problematic, as can occupy
the CPU for 200ms in a busy-loop here.

Fixes: 9c0b42ddd4ba ("drm/amd/display: Add DCN2 HW Sequencer and Resource")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c