777cdda54ff7d8aeafd620a4a24c5887804596be
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-5.15 / 950-0607-drm-vc4-Fix-build-without-DRM_VC4_HDMI_CEC.patch
1 From 977d51f1d3f7058a4bcde2b3f6497880ccd5db6c Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Tue, 14 Dec 2021 21:53:18 +0000
4 Subject: [PATCH] drm/vc4: Fix build without DRM_VC4_HDMI_CEC
5
6 As reported by @asavah.
7
8 Fixes: https://github.com/raspberrypi/linux/issues/4771
9
10 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
11 ---
12 drivers/gpu/drm/vc4/vc4_hdmi.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15 --- a/drivers/gpu/drm/vc4/vc4_hdmi.c
16 +++ b/drivers/gpu/drm/vc4/vc4_hdmi.c
17 @@ -2281,7 +2281,7 @@ static int vc4_hdmi_cec_init(struct vc4_
18
19 static void vc4_hdmi_cec_exit(struct vc4_hdmi *vc4_hdmi) {};
20
21 -static void vc4_hdmi_cec_resume(struct vc4_hdmi *vc4_hdmi)
22 +static int vc4_hdmi_cec_resume(struct vc4_hdmi *vc4_hdmi)
23 {
24 return 0;
25 }