diff options
| author | Maxime Ripard <mripard@kernel.org> | 2025-04-08 14:20:08 +0200 |
|---|---|---|
| committer | Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> | 2025-04-08 17:35:56 +0300 |
| commit | 6c3c8b35d1ff3589aed2206a8805cf3289046118 (patch) | |
| tree | 0ddf1cdae6ed9589f3441b2a186cbef83097b551 | |
| parent | bce319a16072ead8c60a4546cdb426c449e893ec (diff) | |
drm/panel: boe-tv101wum-ll2: Fix compilation build
Commit 5d2b55e55e61 ("panel/boe-tv101wum-ll2: 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: 5d2b55e55e61 ("panel/boe-tv101wum-ll2: 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-3-mripard@kernel.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
| -rw-r--r-- | drivers/gpu/drm/panel/panel-boe-tv101wum-ll2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/panel/panel-boe-tv101wum-ll2.c b/drivers/gpu/drm/panel/panel-boe-tv101wum-ll2.c index 04c7890cc51d..20b6e11a7d84 100644 --- a/drivers/gpu/drm/panel/panel-boe-tv101wum-ll2.c +++ b/drivers/gpu/drm/panel/panel-boe-tv101wum-ll2.c @@ -168,9 +168,9 @@ static int boe_tv101wum_ll2_probe(struct mipi_dsi_device *dsi) ctx = devm_drm_panel_alloc(dev, struct boe_tv101wum_ll2, panel, &boe_tv101wum_ll2_panel_funcs, - DRM_MODE_CONNECTOR_DSI - if (IS_ERR(panel)) - return PTR_ERR(panel); + DRM_MODE_CONNECTOR_DSI); + if (IS_ERR(ctx)) + return PTR_ERR(ctx); ret = devm_regulator_bulk_get_const(&dsi->dev, ARRAY_SIZE(boe_tv101wum_ll2_supplies), |
