Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

Commit 77dcbce63779 ("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: 77dcbce63779 ("panel/th101mb31ig002-28a: Use refcounted allocation in place of devm_kzalloc()")
Signed-off-by: Maxime Ripard <mripard@kernel.org>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Tested-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://lore.kernel.org/r/20250408122008.1676235-2-mripard@kernel.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>

authored by

Maxime Ripard and committed by
Dmitry Baryshkov
bce319a1 a46b02f7

+5 -5
+5 -5
drivers/gpu/drm/panel/panel-boe-th101mb31ig002-28a.c
··· 349 349 const struct panel_desc *desc; 350 350 int ret; 351 351 352 - panel = devm_drm_panel_alloc(dev, struct panel_desc, panel, 353 - &boe_th101mb31ig002_funcs, 354 - DRM_MODE_CONNECTOR_DSI); 355 - if (IS_ERR(panel)) 356 - return PTR_ERR(panel); 352 + ctx = devm_drm_panel_alloc(&dsi->dev, struct boe_th101mb31ig002, panel, 353 + &boe_th101mb31ig002_funcs, 354 + DRM_MODE_CONNECTOR_DSI); 355 + if (IS_ERR(ctx)) 356 + return PTR_ERR(ctx); 357 357 358 358 mipi_dsi_set_drvdata(dsi, ctx); 359 359 ctx->dsi = dsi;