Merge "gpu: ion: Remove ion_virt_addr_t"

This commit is contained in:
Linux Build Service Account
2013-03-14 07:07:58 -07:00
committed by Gerrit - the friendly Code Review server
3 changed files with 5 additions and 8 deletions
+4 -6
View File
@@ -66,7 +66,7 @@ struct ssm_driver {
struct device *dev;
smd_channel_t *ch;
ion_phys_addr_t buff_phys;
ion_virt_addr_t buff_virt;
void *buff_virt;
dev_t ssm_device_no;
struct work_struct ipc_work;
struct mutex mutex;
@@ -401,7 +401,7 @@ static int ssm_load_app(struct ssm_driver *ssm)
const struct elf32_phdr *phdr;
struct ion_handle *ion_handle;
ion_phys_addr_t buff_phys;
ion_virt_addr_t buff_virt;
void *buff_virt;
/* Check if TZ app already loaded */
app_req.cmd_id = APP_LOOKUP_COMMAND;
@@ -509,8 +509,7 @@ static int ssm_load_app(struct ssm_driver *ssm)
goto ion_free;
}
buff_virt =
(ion_virt_addr_t)ion_map_kernel(ssm_drv->ssm_ion_client,
buff_virt = ion_map_kernel(ssm_drv->ssm_ion_client,
ion_handle);
if (IS_ERR_OR_NULL((void *)buff_virt)) {
rc = PTR_ERR((void *)buff_virt);
@@ -605,8 +604,7 @@ static int ssm_setup_ion(struct ssm_driver *ssm)
goto ion_free;
}
ssm->buff_virt =
(ion_virt_addr_t)ion_map_kernel(ssm->ssm_ion_client,
ssm->buff_virt = ion_map_kernel(ssm->ssm_ion_client,
ssm->ssm_ion_handle);
if (IS_ERR_OR_NULL((void *)ssm->buff_virt)) {
rc = PTR_ERR((void *)ssm->buff_virt);
-1
View File
@@ -74,7 +74,6 @@ struct ion_buffer;
be converted to phys_addr_t. For the time being many kernel interfaces
do not accept phys_addr_t's that would have to */
#define ion_phys_addr_t unsigned long
#define ion_virt_addr_t unsigned long
/**
* struct ion_platform_heap - defines a heap in the given platform
+1 -1
View File
@@ -163,7 +163,7 @@ struct ion_cp_heap_pdata {
enum ion_fixed_position fixed_position;
int iommu_map_all;
int iommu_2x_map_domain;
ion_virt_addr_t *virt_addr;
void *virt_addr;
int (*request_region)(void *);
int (*release_region)(void *);
void *(*setup_region)(void);