From 14d459382d25b348cb011c950363f5987774b60e Mon Sep 17 00:00:00 2001 From: Tao Huang Date: Mon, 21 Aug 2023 20:08:42 +0800 Subject: [PATCH] drm/panel: maxim-max96772: Fix compilation errors on kernel 6.1 drivers/gpu/drm/panel/panel-maxim-max96772.c:22:10: fatal error: drm/drm_dp_helper.h: No such file or directory drivers/gpu/drm/panel/panel-maxim-max96772.c:536:19: error: initialization of 'void (*)(struct i2c_client *)' from incompatible pointer type 'int (*)(struct i2c_client *)' Signed-off-by: Tao Huang Change-Id: I53cd11e89b92a96e5724db344c86709c2ca414ff --- drivers/gpu/drm/panel/panel-maxim-max96772.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-maxim-max96772.c b/drivers/gpu/drm/panel/panel-maxim-max96772.c index 2e16d0337887..f0725ec2ccb6 100644 --- a/drivers/gpu/drm/panel/panel-maxim-max96772.c +++ b/drivers/gpu/drm/panel/panel-maxim-max96772.c @@ -19,7 +19,7 @@ #include #include -#include +#include #include #include @@ -489,13 +489,11 @@ static int max96772_panel_probe(struct i2c_client *client) return 0; } -static int max96772_panel_remove(struct i2c_client *client) +static void max96772_panel_remove(struct i2c_client *client) { struct max96772_panel *p = i2c_get_clientdata(client); drm_panel_remove(&p->panel); - - return 0; } static int boe_ae146m1t_l10_prepare(struct max96772_panel *p)