[PATCH v3 28/35] drm/bridge: ti-tfp410: Use drm_bridge_init()
From: Mihail Atanassov
Date: Tue Dec 24 2019 - 12:35:15 EST
No functional change.
v3:
- drop driver_private argument (Laurent)
Reviewed-by: Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx>
Signed-off-by: Mihail Atanassov <mihail.atanassov@xxxxxxx>
---
drivers/gpu/drm/bridge/ti-tfp410.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/bridge/ti-tfp410.c b/drivers/gpu/drm/bridge/ti-tfp410.c
index 76229367e2f4..6371530943a1 100644
--- a/drivers/gpu/drm/bridge/ti-tfp410.c
+++ b/drivers/gpu/drm/bridge/ti-tfp410.c
@@ -328,9 +328,7 @@ static int tfp410_init(struct device *dev, bool i2c)
return -ENOMEM;
dev_set_drvdata(dev, dvi);
- dvi->bridge.funcs = &tfp410_bridge_funcs;
- dvi->bridge.of_node = dev->of_node;
- dvi->bridge.timings = &dvi->timings;
+ drm_bridge_init(&dvi->bridge, dev, &tfp410_bridge_funcs, &dvi->timings);
dvi->dev = dev;
ret = tfp410_parse_timings(dvi, i2c);
--
2.24.0