drm/msm/a6xx: Rename a6xx_gmu_probe to a6xx_gmu_init
authorSean Paul <seanpaul@chromium.org>
Thu, 23 May 2019 17:16:45 +0000 (13:16 -0400)
committerSean Paul <seanpaul@chromium.org>
Fri, 24 May 2019 13:54:02 +0000 (09:54 -0400)
This rename makes it more clear that everything initialized in the _init
function must be cleaned up in a6xx_gmu_remove. This will hopefully
dissuade people from using device managed resources (for reasons laid
out in the previous patch).

Changes in v2:
- None

Cc: Jordan Crouse <jcrouse@codeaurora.org>
Reviewed-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190523171653.138678-6-sean@poorly.run
drivers/gpu/drm/msm/adreno/a6xx_gmu.c
drivers/gpu/drm/msm/adreno/a6xx_gpu.c
drivers/gpu/drm/msm/adreno/a6xx_gpu.h

index e2b839b5d3bda1367b4b3c667267e637b2fffb27..5ab69dcd547996579fb6cc46b9d172aa092e86c1 100644 (file)
@@ -1259,7 +1259,7 @@ void a6xx_gmu_remove(struct a6xx_gpu *a6xx_gpu)
        gmu->initialized = false;
 }
 
-int a6xx_gmu_probe(struct a6xx_gpu *a6xx_gpu, struct device_node *node)
+int a6xx_gmu_init(struct a6xx_gpu *a6xx_gpu, struct device_node *node)
 {
        struct a6xx_gmu *gmu = &a6xx_gpu->gmu;
        struct platform_device *pdev = of_find_device_by_node(node);
index e74dce4742509847b879f8f3c4606eb1fbfc9e22..1f9f4b0a96565a0300f0e810b6b6e76d3f22ca79 100644 (file)
@@ -854,7 +854,7 @@ struct msm_gpu *a6xx_gpu_init(struct drm_device *dev)
        /* FIXME: How do we gracefully handle this? */
        BUG_ON(!node);
 
-       ret = a6xx_gmu_probe(a6xx_gpu, node);
+       ret = a6xx_gmu_init(a6xx_gpu, node);
        if (ret) {
                a6xx_destroy(&(a6xx_gpu->base.base));
                return ERR_PTR(ret);
index b46279eb18c54d74e3c4151260d0d0261f0afc69..64399554f2ddf3404e8ed1b46c92700a0dfed33b 100644 (file)
@@ -53,7 +53,7 @@ bool a6xx_gmu_isidle(struct a6xx_gmu *gmu);
 int a6xx_gmu_set_oob(struct a6xx_gmu *gmu, enum a6xx_gmu_oob_state state);
 void a6xx_gmu_clear_oob(struct a6xx_gmu *gmu, enum a6xx_gmu_oob_state state);
 
-int a6xx_gmu_probe(struct a6xx_gpu *a6xx_gpu, struct device_node *node);
+int a6xx_gmu_init(struct a6xx_gpu *a6xx_gpu, struct device_node *node);
 void a6xx_gmu_remove(struct a6xx_gpu *a6xx_gpu);
 
 void a6xx_gmu_set_freq(struct msm_gpu *gpu, unsigned long freq);