msm: kgsl: Remove gmu_core_regulator_isenabled()
Commit 0d44684cab
("msm: kgsl: Take GMU snapshot on GMU failures")
removed the only usage of gmu_core_regulator_isenabled().
Change-Id: Ic0dedbadb40e1faed4a9e0629e9d0babb718f6b3
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
This commit is contained in:
parent
4d0eb9d995
commit
3c09b03d0c
@ -1739,20 +1739,12 @@ static void gmu_remove(struct kgsl_device *device)
|
||||
memset(&device->gmu_core, 0, sizeof(device->gmu_core));
|
||||
}
|
||||
|
||||
static bool gmu_regulator_isenabled(struct kgsl_device *device)
|
||||
{
|
||||
struct gmu_device *gmu = KGSL_GMU_DEVICE(device);
|
||||
|
||||
return (gmu->gx_gdsc && regulator_is_enabled(gmu->gx_gdsc));
|
||||
}
|
||||
|
||||
static struct gmu_core_ops gmu_ops = {
|
||||
.init = gmu_init,
|
||||
.start = gmu_start,
|
||||
.stop = gmu_stop,
|
||||
.dcvs_set = gmu_dcvs_set,
|
||||
.snapshot = gmu_snapshot,
|
||||
.regulator_isenabled = gmu_regulator_isenabled,
|
||||
.suspend = gmu_suspend,
|
||||
.acd_set = gmu_acd_set,
|
||||
};
|
||||
|
@ -131,16 +131,6 @@ int gmu_core_acd_set(struct kgsl_device *device, bool val)
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
bool gmu_core_regulator_isenabled(struct kgsl_device *device)
|
||||
{
|
||||
struct gmu_core_ops *gmu_core_ops = GMU_CORE_OPS(device);
|
||||
|
||||
if (gmu_core_ops && gmu_core_ops->regulator_isenabled)
|
||||
return gmu_core_ops->regulator_isenabled(device);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool gmu_core_is_register_offset(struct kgsl_device *device,
|
||||
unsigned int offsetwords)
|
||||
{
|
||||
|
@ -107,7 +107,6 @@ struct gmu_core_ops {
|
||||
int (*start)(struct kgsl_device *device);
|
||||
void (*stop)(struct kgsl_device *device);
|
||||
void (*snapshot)(struct kgsl_device *device);
|
||||
bool (*regulator_isenabled)(struct kgsl_device *device);
|
||||
int (*suspend)(struct kgsl_device *device);
|
||||
int (*acd_set)(struct kgsl_device *device, bool val);
|
||||
};
|
||||
@ -181,7 +180,6 @@ bool gmu_core_isenabled(struct kgsl_device *device);
|
||||
int gmu_core_dcvs_set(struct kgsl_device *device, int gpu_pwrlevel,
|
||||
int bus_level);
|
||||
int gmu_core_acd_set(struct kgsl_device *device, bool val);
|
||||
bool gmu_core_regulator_isenabled(struct kgsl_device *device);
|
||||
bool gmu_core_is_register_offset(struct kgsl_device *device,
|
||||
unsigned int offsetwords);
|
||||
void gmu_core_regread(struct kgsl_device *device, unsigned int offsetwords,
|
||||
|
@ -399,13 +399,6 @@ static int rgmu_dcvs_set(struct kgsl_device *device,
|
||||
return ret;
|
||||
}
|
||||
|
||||
static bool rgmu_regulator_isenabled(struct kgsl_device *device)
|
||||
{
|
||||
struct rgmu_device *rgmu = KGSL_RGMU_DEVICE(device);
|
||||
|
||||
return (rgmu->gx_gdsc && regulator_is_enabled(rgmu->gx_gdsc));
|
||||
}
|
||||
|
||||
static void rgmu_remove(struct kgsl_device *device)
|
||||
{
|
||||
rgmu_stop(device);
|
||||
@ -419,7 +412,6 @@ static struct gmu_core_ops rgmu_ops = {
|
||||
.stop = rgmu_stop,
|
||||
.dcvs_set = rgmu_dcvs_set,
|
||||
.snapshot = rgmu_snapshot,
|
||||
.regulator_isenabled = rgmu_regulator_isenabled,
|
||||
.suspend = rgmu_suspend,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user