diff options
Diffstat (limited to 'drivers/gpu/drm/radeon/r100.c')
-rw-r--r-- | drivers/gpu/drm/radeon/r100.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/r100.c b/drivers/gpu/drm/radeon/r100.c index cbf49f4f408e..ad158ea49901 100644 --- a/drivers/gpu/drm/radeon/r100.c +++ b/drivers/gpu/drm/radeon/r100.c | |||
@@ -537,6 +537,7 @@ void r100_hpd_init(struct radeon_device *rdev) | |||
537 | default: | 537 | default: |
538 | break; | 538 | break; |
539 | } | 539 | } |
540 | radeon_hpd_set_polarity(rdev, radeon_connector->hpd.hpd); | ||
540 | } | 541 | } |
541 | if (rdev->irq.installed) | 542 | if (rdev->irq.installed) |
542 | r100_irq_set(rdev); | 543 | r100_irq_set(rdev); |
@@ -577,7 +578,7 @@ int r100_pci_gart_init(struct radeon_device *rdev) | |||
577 | { | 578 | { |
578 | int r; | 579 | int r; |
579 | 580 | ||
580 | if (rdev->gart.table.ram.ptr) { | 581 | if (rdev->gart.ptr) { |
581 | WARN(1, "R100 PCI GART already initialized\n"); | 582 | WARN(1, "R100 PCI GART already initialized\n"); |
582 | return 0; | 583 | return 0; |
583 | } | 584 | } |
@@ -636,10 +637,12 @@ void r100_pci_gart_disable(struct radeon_device *rdev) | |||
636 | 637 | ||
637 | int r100_pci_gart_set_page(struct radeon_device *rdev, int i, uint64_t addr) | 638 | int r100_pci_gart_set_page(struct radeon_device *rdev, int i, uint64_t addr) |
638 | { | 639 | { |
640 | u32 *gtt = rdev->gart.ptr; | ||
641 | |||
639 | if (i < 0 || i > rdev->gart.num_gpu_pages) { | 642 | if (i < 0 || i > rdev->gart.num_gpu_pages) { |
640 | return -EINVAL; | 643 | return -EINVAL; |
641 | } | 644 | } |
642 | rdev->gart.table.ram.ptr[i] = cpu_to_le32(lower_32_bits(addr)); | 645 | gtt[i] = cpu_to_le32(lower_32_bits(addr)); |
643 | return 0; | 646 | return 0; |
644 | } | 647 | } |
645 | 648 | ||