diff options
author | Hemant Hariyani <hemanthariyani@ti.com> | 2012-03-15 17:06:44 -0500 |
---|---|---|
committer | Ziyann <jaraidaniel@gmail.com> | 2014-11-19 21:06:33 +0100 |
commit | d8bfd61541741cf7185bae4f216bdf9e1667d75b (patch) | |
tree | baafa4c254ab49993ea8b88dd6d756e750b3d9d4 | |
parent | 2b20380fd49c229298b1ef9636b750f3b9d2ba5e (diff) | |
download | kernel_samsung_tuna-d8bfd61541741cf7185bae4f216bdf9e1667d75b.zip kernel_samsung_tuna-d8bfd61541741cf7185bae4f216bdf9e1667d75b.tar.gz kernel_samsung_tuna-d8bfd61541741cf7185bae4f216bdf9e1667d75b.tar.bz2 |
rpmsg-omx: Use ion abstraction to get handle from PVR fd
PVRExportFDToIONHandles was being called directly by rpmsg-omx.
This is now abstracted by ion and drivers should use
omap_ion_fd_to_handles instead.
Change-Id: I2f750887a048eb3d9cd28cdc9c4b08eb3e83e31b
Signed-off-by: Hemant Hariyani <hemanthariyani@ti.com>
-rw-r--r-- | drivers/rpmsg/rpmsg_omx.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/rpmsg/rpmsg_omx.c b/drivers/rpmsg/rpmsg_omx.c index 47997d8..4dfc20b 100644 --- a/drivers/rpmsg/rpmsg_omx.c +++ b/drivers/rpmsg/rpmsg_omx.c @@ -150,17 +150,18 @@ static int _rpmsg_omx_buffer_lookup(struct rpmsg_omx_instance *omx, goto exit; } -#ifdef CONFIG_PVR_SGX /* how about an sgx buffer wrapping an ion handle? */ { int fd; struct ion_handle *handles[2] = { NULL, NULL }; struct ion_client *pvr_ion_client; ion_phys_addr_t paddr2; + int num_handles = 2; fd = buffer; - PVRSRVExportFDToIONHandles(fd, &pvr_ion_client, - handles); + if (omap_ion_fd_to_handles(fd, &pvr_ion_client, + handles, &num_handles) < 0) + goto nopvr; /* Get the 1st buffer's da */ if ((handles[0]) && !ion_phys(pvr_ion_client, @@ -182,10 +183,9 @@ static int _rpmsg_omx_buffer_lookup(struct rpmsg_omx_instance *omx, } } -#endif } +nopvr: #endif - ret = _rpmsg_pa_to_da(omx, (phys_addr_t)tiler_virt2phys(buffer), va); exit: if (ret) |