diff options
| author | Jaroslav Kysela <perex@perex.cz> | 2010-02-16 05:19:18 -0500 |
|---|---|---|
| committer | Jaroslav Kysela <perex@perex.cz> | 2010-02-16 05:19:18 -0500 |
| commit | ba9341dfef6b0201cd30e3904dcd0a47d3dc35e0 (patch) | |
| tree | d83637979db83bb9d5a23e190148b90b60c976d2 /drivers/gpu/drm/drm_pci.c | |
| parent | d39e82db73eb876c60d00f00219d767b3be30307 (diff) | |
| parent | f167e1d073278fe231bbdd5d6c24fb9d091aa544 (diff) | |
Merge branch 'fixes' into devel
Diffstat (limited to 'drivers/gpu/drm/drm_pci.c')
| -rw-r--r-- | drivers/gpu/drm/drm_pci.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/gpu/drm/drm_pci.c b/drivers/gpu/drm/drm_pci.c index 577094fb1995..e68ebf92fa2a 100644 --- a/drivers/gpu/drm/drm_pci.c +++ b/drivers/gpu/drm/drm_pci.c | |||
| @@ -47,8 +47,7 @@ | |||
| 47 | /** | 47 | /** |
| 48 | * \brief Allocate a PCI consistent memory block, for DMA. | 48 | * \brief Allocate a PCI consistent memory block, for DMA. |
| 49 | */ | 49 | */ |
| 50 | drm_dma_handle_t *drm_pci_alloc(struct drm_device * dev, size_t size, size_t align, | 50 | drm_dma_handle_t *drm_pci_alloc(struct drm_device * dev, size_t size, size_t align) |
| 51 | dma_addr_t maxaddr) | ||
| 52 | { | 51 | { |
| 53 | drm_dma_handle_t *dmah; | 52 | drm_dma_handle_t *dmah; |
| 54 | #if 1 | 53 | #if 1 |
| @@ -63,11 +62,6 @@ drm_dma_handle_t *drm_pci_alloc(struct drm_device * dev, size_t size, size_t ali | |||
| 63 | if (align > size) | 62 | if (align > size) |
| 64 | return NULL; | 63 | return NULL; |
| 65 | 64 | ||
| 66 | if (pci_set_dma_mask(dev->pdev, maxaddr) != 0) { | ||
| 67 | DRM_ERROR("Setting pci dma mask failed\n"); | ||
| 68 | return NULL; | ||
| 69 | } | ||
| 70 | |||
| 71 | dmah = kmalloc(sizeof(drm_dma_handle_t), GFP_KERNEL); | 65 | dmah = kmalloc(sizeof(drm_dma_handle_t), GFP_KERNEL); |
| 72 | if (!dmah) | 66 | if (!dmah) |
| 73 | return NULL; | 67 | return NULL; |
