Commit 3786c415 authored by Alexandre Courbot's avatar Alexandre Courbot Committed by Ben Skeggs

drm/nouveau/clk/gk20a: rename constructor

Strip the _ prefix off the gk20a clock constructor.
Signed-off-by: default avatarAlexandre Courbot <acourbot@nvidia.com>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 6ed7e742
...@@ -691,7 +691,7 @@ gk20a_clk = { ...@@ -691,7 +691,7 @@ gk20a_clk = {
}; };
int int
_gk20a_clk_ctor(struct nvkm_device *device, int index, gk20a_clk_ctor(struct nvkm_device *device, int index,
const struct nvkm_clk_func *func, const struct nvkm_clk_func *func,
const struct gk20a_clk_pllg_params *params, const struct gk20a_clk_pllg_params *params,
struct gk20a_clk *clk) struct gk20a_clk *clk)
...@@ -730,7 +730,7 @@ gk20a_clk_new(struct nvkm_device *device, int index, struct nvkm_clk **pclk) ...@@ -730,7 +730,7 @@ gk20a_clk_new(struct nvkm_device *device, int index, struct nvkm_clk **pclk)
return -ENOMEM; return -ENOMEM;
*pclk = &clk->base; *pclk = &clk->base;
ret = _gk20a_clk_ctor(device, index, &gk20a_clk, &gk20a_pllg_params, ret = gk20a_clk_ctor(device, index, &gk20a_clk, &gk20a_pllg_params,
clk); clk);
clk->pl_to_div = pl_to_div; clk->pl_to_div = pl_to_div;
......
...@@ -54,7 +54,7 @@ struct gk20a_clk { ...@@ -54,7 +54,7 @@ struct gk20a_clk {
}; };
#define gk20a_clk(p) container_of((p), struct gk20a_clk, base) #define gk20a_clk(p) container_of((p), struct gk20a_clk, base)
int _gk20a_clk_ctor(struct nvkm_device *, int, const struct nvkm_clk_func *, int gk20a_clk_ctor(struct nvkm_device *, int, const struct nvkm_clk_func *,
const struct gk20a_clk_pllg_params *, struct gk20a_clk *); const struct gk20a_clk_pllg_params *, struct gk20a_clk *);
void gk20a_clk_fini(struct nvkm_clk *); void gk20a_clk_fini(struct nvkm_clk *);
int gk20a_clk_read(struct nvkm_clk *, enum nv_clk_src); int gk20a_clk_read(struct nvkm_clk *, enum nv_clk_src);
......
...@@ -192,8 +192,8 @@ gm20b_clk_new(struct nvkm_device *device, int index, struct nvkm_clk **pclk) ...@@ -192,8 +192,8 @@ gm20b_clk_new(struct nvkm_device *device, int index, struct nvkm_clk **pclk)
return -ENOMEM; return -ENOMEM;
*pclk = &clk->base; *pclk = &clk->base;
ret = _gk20a_clk_ctor(device, index, &gm20b_clk_speedo0, ret = gk20a_clk_ctor(device, index, &gm20b_clk_speedo0,
&gm20b_pllg_params, clk); &gm20b_pllg_params, clk);
clk->pl_to_div = pl_to_div; clk->pl_to_div = pl_to_div;
clk->div_to_pl = div_to_pl; clk->div_to_pl = div_to_pl;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment