diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2010-02-23 19:48:16 -0500 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2010-02-25 00:09:26 -0500 |
commit | 54abb5ddae28f6e676f659902cfc8c3ce63b3e16 (patch) | |
tree | a9bb6163cba48b824f421035bc59eb72dc73e259 /drivers/gpu/drm/nouveau | |
parent | e7cc51c5652a8195bc638ce52987fb265ace2a9a (diff) |
drm/nouveau: parse dcb gpio/connector tables after encoders
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_bios.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_bios.c b/drivers/gpu/drm/nouveau/nouveau_bios.c index ca65a5b11fa8..ea690a735325 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bios.c +++ b/drivers/gpu/drm/nouveau/nouveau_bios.c | |||
@@ -5646,9 +5646,6 @@ parse_dcb_table(struct drm_device *dev, struct nvbios *bios, bool twoHeads) | |||
5646 | dcb->i2c_default_indices = dcb->i2c_table[4]; | 5646 | dcb->i2c_default_indices = dcb->i2c_table[4]; |
5647 | } | 5647 | } |
5648 | 5648 | ||
5649 | parse_dcb_gpio_table(bios); | ||
5650 | parse_dcb_connector_table(bios); | ||
5651 | |||
5652 | if (entries > DCB_MAX_NUM_ENTRIES) | 5649 | if (entries > DCB_MAX_NUM_ENTRIES) |
5653 | entries = DCB_MAX_NUM_ENTRIES; | 5650 | entries = DCB_MAX_NUM_ENTRIES; |
5654 | 5651 | ||
@@ -5684,7 +5681,12 @@ parse_dcb_table(struct drm_device *dev, struct nvbios *bios, bool twoHeads) | |||
5684 | if (dcb->version < 0x21) | 5681 | if (dcb->version < 0x21) |
5685 | merge_like_dcb_entries(dev, dcb); | 5682 | merge_like_dcb_entries(dev, dcb); |
5686 | 5683 | ||
5687 | return dcb->entries ? 0 : -ENXIO; | 5684 | if (!dcb->entries) |
5685 | return -ENXIO; | ||
5686 | |||
5687 | parse_dcb_gpio_table(bios); | ||
5688 | parse_dcb_connector_table(bios); | ||
5689 | return 0; | ||
5688 | } | 5690 | } |
5689 | 5691 | ||
5690 | static void | 5692 | static void |