diff options
author | Thierry Reding <treding@nvidia.com> | 2014-01-10 16:56:06 +0100 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2014-01-14 14:35:56 +0100 |
commit | 456ac56b7d9f49b519b436b36a708cf46e5aeefb (patch) | |
tree | 3fefaa834f8e42e7391deb36d7ab0f9f6c8808d0 /drivers/gpu/drm/tegra/rgb.c | |
parent | 14509916c35225d00e294cb161bdfd1108dda38c (diff) | |
download | linux-456ac56b7d9f49b519b436b36a708cf46e5aeefb.tar.bz2 |
drm/tegra: Fix possible CRTC mask for RGB outputs
The mask of possible CRTCs that an output (DRM encoder) can be attached
to is relative to the position within the DRM device's list of CRTCs.
Deferred probing can cause this to not match the pipe number associated
with a CRTC. Use the newly introduced drm_crtc_mask() to compute the
mask by looking up the proper index of the given CRTC in the list.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/rgb.c')
-rw-r--r-- | drivers/gpu/drm/tegra/rgb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tegra/rgb.c b/drivers/gpu/drm/tegra/rgb.c index 03885bb8dcc0..338f7f6561d7 100644 --- a/drivers/gpu/drm/tegra/rgb.c +++ b/drivers/gpu/drm/tegra/rgb.c @@ -258,7 +258,7 @@ int tegra_dc_rgb_init(struct drm_device *drm, struct tegra_dc *dc) * RGB outputs are an exception, so we make sure they can be attached * to only their parent display controller. */ - rgb->output.encoder.possible_crtcs = 1 << dc->pipe; + rgb->output.encoder.possible_crtcs = drm_crtc_mask(&dc->base); return 0; } |