From b4d055a10dbd959d9a11ad2b3fc09490a8e6f2e3 Mon Sep 17 00:00:00 2001 From: Ping Li Date: Wed, 23 Sep 2020 17:38:02 -0700 Subject: [PATCH] disp: msm: sde: return proper errno when register event fails When HW resource is not available, return ENODEV so that user space can check the errno and do proper handling. Change-Id: If5422f1020c262ede4ac7226a274da2c5713b446 Signed-off-by: Ping Li --- msm/sde/sde_color_processing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msm/sde/sde_color_processing.c b/msm/sde/sde_color_processing.c index 9c29ac5d99..42b319bbf0 100644 --- a/msm/sde/sde_color_processing.c +++ b/msm/sde/sde_color_processing.c @@ -4124,7 +4124,7 @@ int sde_cp_ltm_wb_pb_interrupt(struct drm_crtc *crtc, bool en, hw_dspp = sde_crtc->mixers[0].hw_dspp; if (!hw_dspp) { DRM_ERROR("invalid dspp\n"); - return -EINVAL; + return -ENODEV; } if (en) {