|
|
@@ -134,7 +134,7 @@ void __init samsung_clk_register_fixed_rate(struct samsung_clk_provider *ctx,
|
|
|
unsigned int idx, ret;
|
|
|
|
|
|
for (idx = 0; idx < nr_clk; idx++, list++) {
|
|
|
- clk_hw = clk_hw_register_fixed_rate(NULL, list->name,
|
|
|
+ clk_hw = clk_hw_register_fixed_rate(ctx->dev, list->name,
|
|
|
list->parent_name, list->flags, list->fixed_rate);
|
|
|
if (IS_ERR(clk_hw)) {
|
|
|
pr_err("%s: failed to register clock %s\n", __func__,
|
|
|
@@ -163,7 +163,7 @@ void __init samsung_clk_register_fixed_factor(struct samsung_clk_provider *ctx,
|
|
|
unsigned int idx;
|
|
|
|
|
|
for (idx = 0; idx < nr_clk; idx++, list++) {
|
|
|
- clk_hw = clk_hw_register_fixed_factor(NULL, list->name,
|
|
|
+ clk_hw = clk_hw_register_fixed_factor(ctx->dev, list->name,
|
|
|
list->parent_name, list->flags, list->mult, list->div);
|
|
|
if (IS_ERR(clk_hw)) {
|
|
|
pr_err("%s: failed to register clock %s\n", __func__,
|
|
|
@@ -184,7 +184,7 @@ void __init samsung_clk_register_mux(struct samsung_clk_provider *ctx,
|
|
|
unsigned int idx, ret;
|
|
|
|
|
|
for (idx = 0; idx < nr_clk; idx++, list++) {
|
|
|
- clk_hw = clk_hw_register_mux(NULL, list->name,
|
|
|
+ clk_hw = clk_hw_register_mux(ctx->dev, list->name,
|
|
|
list->parent_names, list->num_parents, list->flags,
|
|
|
ctx->reg_base + list->offset,
|
|
|
list->shift, list->width, list->mux_flags, &ctx->lock);
|
|
|
@@ -217,13 +217,13 @@ void __init samsung_clk_register_div(struct samsung_clk_provider *ctx,
|
|
|
|
|
|
for (idx = 0; idx < nr_clk; idx++, list++) {
|
|
|
if (list->table)
|
|
|
- clk_hw = clk_hw_register_divider_table(NULL,
|
|
|
+ clk_hw = clk_hw_register_divider_table(ctx->dev,
|
|
|
list->name, list->parent_name, list->flags,
|
|
|
ctx->reg_base + list->offset,
|
|
|
list->shift, list->width, list->div_flags,
|
|
|
list->table, &ctx->lock);
|
|
|
else
|
|
|
- clk_hw = clk_hw_register_divider(NULL, list->name,
|
|
|
+ clk_hw = clk_hw_register_divider(ctx->dev, list->name,
|
|
|
list->parent_name, list->flags,
|
|
|
ctx->reg_base + list->offset, list->shift,
|
|
|
list->width, list->div_flags, &ctx->lock);
|
|
|
@@ -255,7 +255,7 @@ void __init samsung_clk_register_gate(struct samsung_clk_provider *ctx,
|
|
|
unsigned int idx, ret;
|
|
|
|
|
|
for (idx = 0; idx < nr_clk; idx++, list++) {
|
|
|
- clk_hw = clk_hw_register_gate(NULL, list->name, list->parent_name,
|
|
|
+ clk_hw = clk_hw_register_gate(ctx->dev, list->name, list->parent_name,
|
|
|
list->flags, ctx->reg_base + list->offset,
|
|
|
list->bit_idx, list->gate_flags, &ctx->lock);
|
|
|
if (IS_ERR(clk_hw)) {
|