[PATCH v2 05/28] drm/bridge: dumb-vga-dac: Use drm_bridge_init()

From: Mihail Atanassov
Date: Wed Dec 04 2019 - 06:49:57 EST


No functional change.

Signed-off-by: Mihail Atanassov <mihail.atanassov@xxxxxxx>
---
drivers/gpu/drm/bridge/dumb-vga-dac.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/bridge/dumb-vga-dac.c b/drivers/gpu/drm/bridge/dumb-vga-dac.c
index cc33dc411b9e..896f27272e38 100644
--- a/drivers/gpu/drm/bridge/dumb-vga-dac.c
+++ b/drivers/gpu/drm/bridge/dumb-vga-dac.c
@@ -205,10 +205,8 @@ static int dumb_vga_probe(struct platform_device *pdev)
}
}

- vga->bridge.funcs = &dumb_vga_bridge_funcs;
- vga->bridge.of_node = pdev->dev.of_node;
- vga->bridge.timings = of_device_get_match_data(&pdev->dev);
-
+ drm_bridge_init(&vga->bridge, &pdev->dev, &dumb_vga_bridge_funcs,
+ of_device_get_match_data(&pdev->dev), NULL);
drm_bridge_add(&vga->bridge);

return 0;
--
2.23.0