aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/drm/drm_pci.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@starflyer.(none)>2005-09-25 00:28:13 -0400
committerDave Airlie <airlied@linux.ie>2005-09-25 00:28:13 -0400
commitb5e89ed53ed8d24f83ba1941c07382af00ed238e (patch)
tree747bae7a565f88a2e1d5974776eeb054a932c505 /drivers/char/drm/drm_pci.c
parent99a2657a29e2d623c3568cd86b27cac13fb63140 (diff)
drm: lindent the drm directory.
I've been threatening this for a while, so no point hanging around. This lindents the DRM code which was always really bad in tabbing department. I've also fixed some misnamed files in comments and removed some trailing whitespace. Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/drm_pci.c')
-rw-r--r--drivers/char/drm/drm_pci.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/char/drm/drm_pci.c b/drivers/char/drm/drm_pci.c
index 09ed712c1a7f..1fd7ff164817 100644
--- a/drivers/char/drm/drm_pci.c
+++ b/drivers/char/drm/drm_pci.c
@@ -77,7 +77,7 @@ drm_dma_handle_t *drm_pci_alloc(drm_device_t * dev, size_t size, size_t align,
77 dmah = kmalloc(sizeof(drm_dma_handle_t), GFP_KERNEL); 77 dmah = kmalloc(sizeof(drm_dma_handle_t), GFP_KERNEL);
78 if (!dmah) 78 if (!dmah)
79 return NULL; 79 return NULL;
80 80
81 dmah->size = size; 81 dmah->size = size;
82 dmah->vaddr = pci_alloc_consistent(dev->pdev, size, &dmah->busaddr); 82 dmah->vaddr = pci_alloc_consistent(dev->pdev, size, &dmah->busaddr);
83 83
@@ -106,6 +106,7 @@ drm_dma_handle_t *drm_pci_alloc(drm_device_t * dev, size_t size, size_t align,
106 106
107 return dmah; 107 return dmah;
108} 108}
109
109EXPORT_SYMBOL(drm_pci_alloc); 110EXPORT_SYMBOL(drm_pci_alloc);
110 111
111/** 112/**
@@ -113,8 +114,7 @@ EXPORT_SYMBOL(drm_pci_alloc);
113 * 114 *
114 * This function is for internal use in the Linux-specific DRM core code. 115 * This function is for internal use in the Linux-specific DRM core code.
115 */ 116 */
116void 117void __drm_pci_free(drm_device_t * dev, drm_dma_handle_t * dmah)
117__drm_pci_free(drm_device_t * dev, drm_dma_handle_t *dmah)
118{ 118{
119#ifdef DRM_DEBUG_MEMORY 119#ifdef DRM_DEBUG_MEMORY
120 int area = DRM_MEM_DMA; 120 int area = DRM_MEM_DMA;
@@ -150,12 +150,12 @@ __drm_pci_free(drm_device_t * dev, drm_dma_handle_t *dmah)
150/** 150/**
151 * \brief Free a PCI consistent memory block 151 * \brief Free a PCI consistent memory block
152 */ 152 */
153void 153void drm_pci_free(drm_device_t * dev, drm_dma_handle_t * dmah)
154drm_pci_free(drm_device_t *dev, drm_dma_handle_t *dmah)
155{ 154{
156 __drm_pci_free(dev, dmah); 155 __drm_pci_free(dev, dmah);
157 kfree(dmah); 156 kfree(dmah);
158} 157}
158
159EXPORT_SYMBOL(drm_pci_free); 159EXPORT_SYMBOL(drm_pci_free);
160 160
161/*@}*/ 161/*@}*/