Commit 0bae6020 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Sam Ravnborg

drm: bridge: adv7511: Make connector creation optional

Now that the driver supports all the connector-related bridge
operations, make the connector creation optional. This enables usage of
the adv7511 with the DRM bridge connector helper.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: default avatarSam Ravnborg <sam@ravnborg.org>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200526011505.31884-5-laurent.pinchart+renesas@ideasonboard.com
parent 7c936157
...@@ -902,16 +902,13 @@ static int adv7511_bridge_attach(struct drm_bridge *bridge, ...@@ -902,16 +902,13 @@ static int adv7511_bridge_attach(struct drm_bridge *bridge,
enum drm_bridge_attach_flags flags) enum drm_bridge_attach_flags flags)
{ {
struct adv7511 *adv = bridge_to_adv7511(bridge); struct adv7511 *adv = bridge_to_adv7511(bridge);
int ret; int ret = 0;
if (flags & DRM_BRIDGE_ATTACH_NO_CONNECTOR) {
DRM_ERROR("Fix bridge driver to make connector optional!");
return -EINVAL;
}
if (!(flags & DRM_BRIDGE_ATTACH_NO_CONNECTOR)) {
ret = adv7511_connector_init(adv); ret = adv7511_connector_init(adv);
if (ret < 0) if (ret < 0)
return ret; return ret;
}
if (adv->type == ADV7533 || adv->type == ADV7535) if (adv->type == ADV7533 || adv->type == ADV7535)
ret = adv7533_attach_dsi(adv); ret = adv7533_attach_dsi(adv);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment