gpu: host1x-nvhost: Remove unused functions

The functions nvhost_job_put() and nvhost_syncpt_set_minval() are no
longer used so remove these functions.

The flag CONFIG_TEGRA_HOST1X is always true for out-of-tree drivers and
so remove the legacy code for when this flag is not defined.

Bug 4475969

Change-Id: I88c89d30bfc9be4b8628f115ea96835cb5f6f295
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3091653
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
This commit is contained in:
Jon Hunter
2024-03-07 17:49:42 +00:00
committed by mobile promotions
parent 45c87920e5
commit a6d28bc2c8
3 changed files with 1 additions and 31 deletions

View File

@@ -12,7 +12,6 @@
struct nvhost_ctrl_sync_fence_info;
struct nvhost_fence;
struct nvhost_job;
#define NVHOST_MODULE_MAX_CLOCKS 8
#define NVHOST_MODULE_MAX_IORESOURCE_MEM 5
@@ -213,7 +212,6 @@ u32 nvhost_get_syncpt_gpu_managed(struct platform_device *pdev,
const char *syncpt_name);
void nvhost_syncpt_put_ref_ext(struct platform_device *pdev, u32 id);
bool nvhost_syncpt_is_valid_pt_ext(struct platform_device *dev, u32 id);
void nvhost_syncpt_set_minval(struct platform_device *dev, u32 id, u32 val);
void nvhost_syncpt_set_min_update(struct platform_device *pdev, u32 id, u32 val);
int nvhost_syncpt_read_ext_check(struct platform_device *dev, u32 id, u32 *val);
u32 nvhost_syncpt_read_maxval(struct platform_device *dev, u32 id);
@@ -269,8 +267,6 @@ static inline int nvhost_fence_foreach_pt(
return -EOPNOTSUPP;
}
static inline void nvhost_job_put(struct nvhost_job *job) {}
static inline struct nvhost_fence *nvhost_fence_get(int fd)
{
return NULL;