Skip to content

Commit a46b02f

Browse files
mripardlumag
authored andcommitted
drm/panel: auo-a030jtn01: Fix compilation build
Commit 9d7d7c3 ("panel/auo-a030jtn01: 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: 9d7d7c3 ("panel/auo-a030jtn01: 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-1-mripard@kernel.org Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
1 parent 92a2bf2 commit a46b02f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/gpu/drm/panel/panel-auo-a030jtn01.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,10 @@ static int a030jtn01_probe(struct spi_device *spi)
200200

201201
spi->mode |= SPI_MODE_3 | SPI_3WIRE;
202202

203-
panel = devm_drm_panel_alloc(dev, struct a030jtn01, panel,
204-
&a030jtn01_funcs, DRM_MODE_CONNECTOR_DPI);
205-
if (IS_ERR(panel))
206-
return PTR_ERR(panel);
203+
priv = devm_drm_panel_alloc(dev, struct a030jtn01, panel,
204+
&a030jtn01_funcs, DRM_MODE_CONNECTOR_DPI);
205+
if (IS_ERR(priv))
206+
return PTR_ERR(priv);
207207

208208
priv->spi = spi;
209209
spi_set_drvdata(spi, priv);

0 commit comments

Comments
 (0)