mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 19:13:47 +02:00
drm/panel: auo-a030jtn01: Fix compilation build
Commit9d7d7c3c9a("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:9d7d7c3c9a("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>
This commit is contained in:
parent
92a2bf257e
commit
a46b02f7a8
|
|
@ -200,10 +200,10 @@ static int a030jtn01_probe(struct spi_device *spi)
|
|||
|
||||
spi->mode |= SPI_MODE_3 | SPI_3WIRE;
|
||||
|
||||
panel = devm_drm_panel_alloc(dev, struct a030jtn01, panel,
|
||||
&a030jtn01_funcs, DRM_MODE_CONNECTOR_DPI);
|
||||
if (IS_ERR(panel))
|
||||
return PTR_ERR(panel);
|
||||
priv = devm_drm_panel_alloc(dev, struct a030jtn01, panel,
|
||||
&a030jtn01_funcs, DRM_MODE_CONNECTOR_DPI);
|
||||
if (IS_ERR(priv))
|
||||
return PTR_ERR(priv);
|
||||
|
||||
priv->spi = spi;
|
||||
spi_set_drvdata(spi, priv);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user