Commit bce319a1 authored by Maxime Ripard's avatar Maxime Ripard Committed by Dmitry Baryshkov
Browse files

drm/panel: boe-th101mb31ig002-28a: Fix compilation build



Commit 77dcbce6 ("panel/th101mb31ig002-28a: Use refcounted
allocation in place of devm_kzalloc()") switched from a kmalloc +
drm_panel_init call to a devm_drm_panel_alloc one.

However, the variable it was storing the allocated pointer in doesn't
exist, resulting in a compilation breakage.

Fixes: 77dcbce6 ("panel/th101mb31ig002-28a: Use refcounted allocation in place of devm_kzalloc()")
Signed-off-by: default avatarMaxime Ripard <mripard@kernel.org>
Reviewed-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Tested-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Link: https://lore.kernel.org/r/20250408122008.1676235-2-mripard@kernel.org


Signed-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
parent a46b02f7
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -349,11 +349,11 @@ static int boe_th101mb31ig002_dsi_probe(struct mipi_dsi_device *dsi)
	const struct panel_desc *desc;
	int ret;

	panel = devm_drm_panel_alloc(dev, struct panel_desc, panel,
	ctx = devm_drm_panel_alloc(&dsi->dev, struct boe_th101mb31ig002, panel,
				   &boe_th101mb31ig002_funcs,
				   DRM_MODE_CONNECTOR_DSI);
	if (IS_ERR(panel))
		return PTR_ERR(panel);
	if (IS_ERR(ctx))
		return PTR_ERR(ctx);

	mipi_dsi_set_drvdata(dsi, ctx);
	ctx->dsi = dsi;