diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2019-05-28 11:27:40 +0300 |
---|---|---|
committer | Andrzej Hajda <a.hajda@samsung.com> | 2019-05-31 15:41:26 +0200 |
commit | 2792c152a84577eb7df569ce0ef92102ca2c8fdf (patch) | |
tree | a70279d6c4032e79c3ba759f08afcbf480c9c49d /drivers/gpu/drm/bridge/tc358767.c | |
parent | f9538357760b08cd4c25eefa2d882adae3c9afb2 (diff) | |
download | lwn-2792c152a84577eb7df569ce0ef92102ca2c8fdf.tar.gz lwn-2792c152a84577eb7df569ce0ef92102ca2c8fdf.zip |
drm/bridge: tc358767: remove check for video mode in link enable
tc_main_link_enable() checks if videomode has been set, and fails if
there's no videomode. As tc_main_link_enable() no longer depends on the
videomode, we can drop the check.
Also, while tc_stream_enable() does depend on the videomode, we can
expect that a mode has been set before drm_bridge_funcs.enable is
called, so we don't need the check there either.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190528082747.3631-18-tomi.valkeinen@ti.com
Diffstat (limited to 'drivers/gpu/drm/bridge/tc358767.c')
-rw-r--r-- | drivers/gpu/drm/bridge/tc358767.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/gpu/drm/bridge/tc358767.c b/drivers/gpu/drm/bridge/tc358767.c index 10a9b46de5f1..604e54b90b79 100644 --- a/drivers/gpu/drm/bridge/tc358767.c +++ b/drivers/gpu/drm/bridge/tc358767.c @@ -773,10 +773,6 @@ static int tc_main_link_enable(struct tc_data *tc) int ret; u8 tmp[8]; - /* display mode should be set at this point */ - if (!tc->mode) - return -EINVAL; - dev_dbg(tc->dev, "link enable\n"); tc_read(DP0CTL, &value); |