From 871ad42d59ca25fb7bb2ce07cf4819b16cfd7f82 Mon Sep 17 00:00:00 2001 From: Laura Abbott Date: Wed, 13 Mar 2013 14:28:19 -0700 Subject: [PATCH] gpu: ion: Remove ion_virt_addr_t The ion_virt_addr_t was added for historical code which is not used anymore. Remove it. Change-Id: Ic628ce675cc7b9dfd570ccfb5fbed6fab67b4571 Signed-off-by: Laura Abbott --- drivers/platform/msm/ssm.c | 10 ++++------ include/linux/ion.h | 1 - include/linux/msm_ion.h | 2 +- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/platform/msm/ssm.c b/drivers/platform/msm/ssm.c index c57bb9180dc..3afb954365b 100644 --- a/drivers/platform/msm/ssm.c +++ b/drivers/platform/msm/ssm.c @@ -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); diff --git a/include/linux/ion.h b/include/linux/ion.h index f159fe2a0b8..fb1c5f64ed5 100644 --- a/include/linux/ion.h +++ b/include/linux/ion.h @@ -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 diff --git a/include/linux/msm_ion.h b/include/linux/msm_ion.h index ff22e129495..a683ed4fe4e 100644 --- a/include/linux/msm_ion.h +++ b/include/linux/msm_ion.h @@ -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);