summaryrefslogtreecommitdiff
path: root/drivers/gpu/msm/adreno.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/msm/adreno.c')
-rw-r--r--drivers/gpu/msm/adreno.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/msm/adreno.c b/drivers/gpu/msm/adreno.c
index bfd359b0d26b..3a016ae1711c 100644
--- a/drivers/gpu/msm/adreno.c
+++ b/drivers/gpu/msm/adreno.c
@@ -797,6 +797,7 @@ static struct {
} adreno_quirks[] = {
{ ADRENO_QUIRK_TWO_PASS_USE_WFI, "qcom,gpu-quirk-two-pass-use-wfi" },
{ ADRENO_QUIRK_IOMMU_SYNC, "qcom,gpu-quirk-iommu-sync" },
+ { ADRENO_QUIRK_CRITICAL_PACKETS, "qcom,gpu-quirk-critical-packets" },
};
static int adreno_of_get_power(struct adreno_device *adreno_dev,
@@ -1000,6 +1001,7 @@ static void _adreno_free_memories(struct adreno_device *adreno_dev)
static int adreno_remove(struct platform_device *pdev)
{
struct adreno_device *adreno_dev = adreno_get_dev(pdev);
+ struct adreno_gpudev *gpudev = ADRENO_GPU_DEVICE(adreno_dev);
struct kgsl_device *device;
if (adreno_dev == NULL)
@@ -1007,6 +1009,9 @@ static int adreno_remove(struct platform_device *pdev)
device = KGSL_DEVICE(adreno_dev);
+ if (gpudev->remove != NULL)
+ gpudev->remove(adreno_dev);
+
/* The memory is fading */
_adreno_free_memories(adreno_dev);