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)
committerPhil Elwell <phil@raspberrypi.com>
Tue, 14 Dec 2021 21:56:08 +0000 (21:56 +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 6aa074714305cd32d58c429ff1d37d198568a0c0..b621fc3b1750184d103c7320f234e015a954d217 100644 (file)
@@ -2328,7 +2328,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;
 }