mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 10:33:41 +02:00
drm/exynos: mic: convert to devm_drm_bridge_alloc() API
This is the new API for allocating DRM bridges. Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250424-drm-bridge-convert-to-alloc-api-v2-14-8f91a404d86b@bootlin.com Signed-off-by: Louis Chauvet <louis.chauvet@bootlin.com>
This commit is contained in:
parent
a4754ae9cf
commit
91c5c7b5bb
|
|
@ -379,11 +379,11 @@ static int exynos_mic_probe(struct platform_device *pdev)
|
|||
struct resource res;
|
||||
int ret, i;
|
||||
|
||||
mic = devm_kzalloc(dev, sizeof(*mic), GFP_KERNEL);
|
||||
if (!mic) {
|
||||
mic = devm_drm_bridge_alloc(dev, struct exynos_mic, bridge, &mic_bridge_funcs);
|
||||
if (IS_ERR(mic)) {
|
||||
DRM_DEV_ERROR(dev,
|
||||
"mic: Failed to allocate memory for MIC object\n");
|
||||
ret = -ENOMEM;
|
||||
ret = PTR_ERR(mic);
|
||||
goto err;
|
||||
}
|
||||
|
||||
|
|
@ -421,7 +421,6 @@ static int exynos_mic_probe(struct platform_device *pdev)
|
|||
|
||||
platform_set_drvdata(pdev, mic);
|
||||
|
||||
mic->bridge.funcs = &mic_bridge_funcs;
|
||||
mic->bridge.of_node = dev->of_node;
|
||||
|
||||
drm_bridge_add(&mic->bridge);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user