summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nouveau_dp.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2012-03-11 01:28:48 +1000
committerBen Skeggs <bskeggs@redhat.com>2012-03-13 17:15:04 +1000
commit6e83fda2c055f17780b2feef404f06803a49a261 (patch)
treed736720740ef69addd8911060629d987d1822705 /drivers/gpu/drm/nouveau/nouveau_dp.c
parentf14d9a4dda65439d74326694db727c6d2a5df0ce (diff)
drm/nvd0/disp: initial implementation of displayport
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_dp.c')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_dp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_dp.c b/drivers/gpu/drm/nouveau/nouveau_dp.c
index 7be4e06e843..b3644651d89 100644
--- a/drivers/gpu/drm/nouveau/nouveau_dp.c
+++ b/drivers/gpu/drm/nouveau/nouveau_dp.c
@@ -364,10 +364,8 @@ dp_set_downspread(struct drm_device *dev, struct dp_state *dp, bool enable)
u8 *entry, *table = nouveau_dp_bios_data(dev, dp->dcb, &entry);
if (table) {
if (table[0] >= 0x20 && table[0] <= 0x30) {
- if (enable)
- script = ROM16(entry[12]);
- else
- script = ROM16(entry[14]);
+ if (enable) script = ROM16(entry[12]);
+ else script = ROM16(entry[14]);
}
}