aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSaurabh Bipin Chandra2013-09-05 05:16:56 -0500
committerSaurabh Bipin Chandra2013-09-05 10:44:04 -0500
commita502de00cbe7e704379f6ddbdf6ee3cc2c4f4274 (patch)
treebf587610df3f43149016a713d59b1f19c8f73c25 /memplugin_linux.c
parent2cf99e4c810f3fe1eddd1e02469643384002079f (diff)
downloadrepo-libdce-a502de00cbe7e704379f6ddbdf6ee3cc2c4f4274.tar.gz
repo-libdce-a502de00cbe7e704379f6ddbdf6ee3cc2c4f4274.tar.xz
repo-libdce-a502de00cbe7e704379f6ddbdf6ee3cc2c4f4274.zip
[LINUX] Moving Linux specific functions to new c file
This patch moves Linux specific functions to libdce_linux.c. It also takes in the DRM Initialization cleanup changes in dce_init from: https://gerrit.ext.ti.com/gerrit/omap/#/c/12888 Change-Id: I570341c8dfbe1d120bc89071a86020b6ba5d4cac Signed-off-by: Saurabh Bipin Chandra <a0131926@ti.com>
Diffstat (limited to 'memplugin_linux.c')
-rw-r--r--memplugin_linux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/memplugin_linux.c b/memplugin_linux.c
index 47f03fc..db04f4c 100644
--- a/memplugin_linux.c
+++ b/memplugin_linux.c
@@ -33,7 +33,7 @@
33#include "memplugin.h" 33#include "memplugin.h"
34#include "dce_priv.h" 34#include "dce_priv.h"
35 35
36extern struct omap_device *dev; 36extern struct omap_device *OmapDev;
37 37
38 38
39/* memplugin_alloc - allocates omap_bo buffer with a header above it. 39/* memplugin_alloc - allocates omap_bo buffer with a header above it.
@@ -45,7 +45,7 @@ extern struct omap_device *dev;
45void *memplugin_alloc(int sz, int height, mem_type memory_type) 45void *memplugin_alloc(int sz, int height, mem_type memory_type)
46{ 46{
47 MemHeader *h; 47 MemHeader *h;
48 struct omap_bo *bo = omap_bo_new(dev, sz + sizeof(MemHeader), OMAP_BO_CACHED); 48 struct omap_bo *bo = omap_bo_new(OmapDev, sz + sizeof(MemHeader), OMAP_BO_CACHED);
49 49
50 if( !bo ) { 50 if( !bo ) {
51 return (NULL); 51 return (NULL);