Skip to content

Commit bce319a

Browse files
mripardlumag
authored andcommitted
drm/panel: boe-th101mb31ig002-28a: Fix compilation build
Commit 77dcbce ("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: 77dcbce ("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>
1 parent a46b02f commit bce319a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

drivers/gpu/drm/panel/panel-boe-th101mb31ig002-28a.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -349,11 +349,11 @@ static int boe_th101mb31ig002_dsi_probe(struct mipi_dsi_device *dsi)
349349
const struct panel_desc *desc;
350350
int ret;
351351

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);
357357

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

0 commit comments

Comments
 (0)