Skip to content

Commit

Permalink
clk: rockchip: fix issues in the mmc-phase clock
Browse files Browse the repository at this point in the history
The review for the new inverter clock type uncovered some issues (missing
headers and name handling) that are also present in the mmc-phase clock
type, I got (to much) inspiration from. Fix these there too.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
  • Loading branch information
Heiko Stuebner authored and Stephen Boyd committed Jul 6, 2015
1 parent 8a76f44 commit 7c494ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/clk/rockchip/clk-mmc-phase.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

#include <linux/slab.h>
#include <linux/clk-provider.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include "clk.h"

struct rockchip_mmc_clock {
Expand Down Expand Up @@ -131,6 +133,7 @@ struct clk *rockchip_clk_register_mmc(const char *name,
if (!mmc_clock)
return NULL;

init.name = name;
init.num_parents = num_parents;
init.parent_names = parent_names;
init.ops = &rockchip_mmc_clk_ops;
Expand All @@ -139,9 +142,6 @@ struct clk *rockchip_clk_register_mmc(const char *name,
mmc_clock->reg = reg;
mmc_clock->shift = shift;

if (name)
init.name = name;

clk = clk_register(NULL, &mmc_clock->hw);
if (IS_ERR(clk))
goto err_free;
Expand Down

0 comments on commit 7c494ad

Please sign in to comment.