diff options
Diffstat (limited to 'drivers/char/drm/drm_bufs.c')
-rw-r--r-- | drivers/char/drm/drm_bufs.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/char/drm/drm_bufs.c b/drivers/char/drm/drm_bufs.c index d24a6c2c2c24..d65e75d405fa 100644 --- a/drivers/char/drm/drm_bufs.c +++ b/drivers/char/drm/drm_bufs.c | |||
@@ -184,7 +184,7 @@ static int drm_addmap_core(struct drm_device * dev, unsigned int offset, | |||
184 | return -ENOMEM; | 184 | return -ENOMEM; |
185 | } | 185 | } |
186 | } | 186 | } |
187 | 187 | ||
188 | break; | 188 | break; |
189 | case _DRM_SHM: | 189 | case _DRM_SHM: |
190 | list = drm_find_matching_map(dev, map); | 190 | list = drm_find_matching_map(dev, map); |
@@ -814,9 +814,9 @@ int drm_addbufs_pci(struct drm_device * dev, struct drm_buf_desc * request) | |||
814 | page_count = 0; | 814 | page_count = 0; |
815 | 815 | ||
816 | while (entry->buf_count < count) { | 816 | while (entry->buf_count < count) { |
817 | 817 | ||
818 | dmah = drm_pci_alloc(dev, PAGE_SIZE << page_order, 0x1000, 0xfffffffful); | 818 | dmah = drm_pci_alloc(dev, PAGE_SIZE << page_order, 0x1000, 0xfffffffful); |
819 | 819 | ||
820 | if (!dmah) { | 820 | if (!dmah) { |
821 | /* Set count correctly so we free the proper amount. */ | 821 | /* Set count correctly so we free the proper amount. */ |
822 | entry->buf_count = count; | 822 | entry->buf_count = count; |
@@ -1592,5 +1592,3 @@ int drm_order(unsigned long size) | |||
1592 | return order; | 1592 | return order; |
1593 | } | 1593 | } |
1594 | EXPORT_SYMBOL(drm_order); | 1594 | EXPORT_SYMBOL(drm_order); |
1595 | |||
1596 | |||