drm/vc4: Fix build without DRM_VC4_HDMI_CEC
authorPhil Elwell <phil@raspberrypi.com>
Tue, 14 Dec 2021 21:53:18 +0000 (21:53 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:04:33 +0000 (16:04 +0000)
As reported by @asavah.

Fixes: https://github.com/raspberrypi/linux/issues/4771

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
drivers/gpu/drm/vc4/vc4_hdmi.c

index 881c48e..ed6a9d4 100644 (file)
@@ -2280,7 +2280,7 @@ static int vc4_hdmi_cec_init(struct vc4_hdmi *vc4_hdmi)
 
 static void vc4_hdmi_cec_exit(struct vc4_hdmi *vc4_hdmi) {};
 
-static void vc4_hdmi_cec_resume(struct vc4_hdmi *vc4_hdmi)
+static int vc4_hdmi_cec_resume(struct vc4_hdmi *vc4_hdmi)
 {
        return 0;
 }