diff options
| author | Laurent Pinchart <[email protected]> | 2017-04-20 21:33:52 +0000 |
|---|---|---|
| committer | Tomi Valkeinen <[email protected]> | 2017-06-02 07:57:05 +0000 |
| commit | bc20c85caba279b7c63146bab683ca1a81de9f79 (patch) | |
| tree | fc775496c33f32ca4feabf120a19cdb710f78e89 /drivers/gpu/drm/omapdrm/omap_fb.c | |
| parent | drm: omapdrm: Rename occurrences of paddr to dma_addr (diff) | |
| download | kernel-bc20c85caba279b7c63146bab683ca1a81de9f79.tar.gz kernel-bc20c85caba279b7c63146bab683ca1a81de9f79.zip | |
drm: omapdrm: Rename omap_gem_(get|put)_paddr() to omap_gem_(un)pin()
The reflects the purpose of the function better.
Signed-off-by: Laurent Pinchart <[email protected]>
Signed-off-by: Tomi Valkeinen <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_fb.c')
| -rw-r--r-- | drivers/gpu/drm/omapdrm/omap_fb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_fb.c b/drivers/gpu/drm/omapdrm/omap_fb.c index 444bf92c5252..2e8d77166e1f 100644 --- a/drivers/gpu/drm/omapdrm/omap_fb.c +++ b/drivers/gpu/drm/omapdrm/omap_fb.c @@ -259,7 +259,7 @@ int omap_framebuffer_pin(struct drm_framebuffer *fb) for (i = 0; i < n; i++) { struct plane *plane = &omap_fb->planes[i]; - ret = omap_gem_get_paddr(plane->bo, &plane->dma_addr); + ret = omap_gem_pin(plane->bo, &plane->dma_addr); if (ret) goto fail; omap_gem_dma_sync(plane->bo, DMA_TO_DEVICE); @@ -274,7 +274,7 @@ int omap_framebuffer_pin(struct drm_framebuffer *fb) fail: for (i--; i >= 0; i--) { struct plane *plane = &omap_fb->planes[i]; - omap_gem_put_paddr(plane->bo); + omap_gem_unpin(plane->bo); plane->dma_addr = 0; } @@ -300,7 +300,7 @@ void omap_framebuffer_unpin(struct drm_framebuffer *fb) for (i = 0; i < n; i++) { struct plane *plane = &omap_fb->planes[i]; - omap_gem_put_paddr(plane->bo); + omap_gem_unpin(plane->bo); plane->dma_addr = 0; } |
