drm/amd/display: Fix error returned by program_hpd_filter
diff mbox series

Message ID 20191117172236.2140-1-pakki001@umn.edu
State New
Headers show
  • drm/amd/display: Fix error returned by program_hpd_filter
Related show

Commit Message

Aditya Pakki Nov. 17, 2019, 5:22 p.m. UTC
program_hpd_filter() currently fails to check for the errors
returned in construct(). This patch returns error in
case of failure.

Signed-off-by: Aditya Pakki <pakki001@umn.edu>
 drivers/gpu/drm/amd/display/dc/core/dc_link.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff mbox series

diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link.c b/drivers/gpu/drm/amd/display/dc/core/dc_link.c
index ca20b150afcc..bbb648a50c41 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c
@@ -1379,9 +1379,8 @@  static bool construct(
 	 * If GPIO isn't programmed correctly HPD might not rise or drain
 	 * fast enough, leading to bounces.
-	program_hpd_filter(link);
+	return program_hpd_filter(link);
-	return true;