mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 14:17:43 +00:00
drm/amd/display: Null check clock source.
Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com> Acked-by: Harry Wentland <Harry.Wentland@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
ab2541b673
commit
457b74cb37
1 changed files with 2 additions and 1 deletions
|
@ -74,7 +74,8 @@ void dp_enable_link_phy(
|
|||
if (pipes[i].stream != NULL &&
|
||||
pipes[i].stream->sink != NULL &&
|
||||
pipes[i].stream->sink->link == link) {
|
||||
if (pipes[i].clock_source->id != CLOCK_SOURCE_ID_DP_DTO) {
|
||||
if (pipes[i].clock_source != NULL &&
|
||||
pipes[i].clock_source->id != CLOCK_SOURCE_ID_DP_DTO) {
|
||||
pipes[i].clock_source = dp_cs;
|
||||
pipes[i].pix_clk_params.requested_pix_clk =
|
||||
pipes[i].stream->public.timing.pix_clk_khz;
|
||||
|
|
Loading…
Add table
Reference in a new issue