Skip to content

Commit

Permalink
ARM i.MX23/28: remove secondary field from struct clk. It's unused
Browse files Browse the repository at this point in the history
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Shawn Guo <shawn.guo@freescale.com>
  • Loading branch information
Sascha Hauer committed Jan 24, 2011
1 parent 34d8073 commit 5080e9c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions arch/arm/mach-mxs/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ static void __clk_disable(struct clk *clk)
if (clk->disable)
clk->disable(clk);
__clk_disable(clk->parent);
__clk_disable(clk->secondary);
}
}

Expand All @@ -68,7 +67,6 @@ static int __clk_enable(struct clk *clk)

if (clk->usecount++ == 0) {
__clk_enable(clk->parent);
__clk_enable(clk->secondary);

if (clk->enable)
clk->enable(clk);
Expand Down
2 changes: 0 additions & 2 deletions arch/arm/mach-mxs/include/mach/clock.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ struct clk {
int id;
/* Source clock this clk depends on */
struct clk *parent;
/* Secondary clock to enable/disable with this clock */
struct clk *secondary;
/* Reference count of clock enable/disable */
__s8 usecount;
/* Register bit position for clock's enable/disable control. */
Expand Down

0 comments on commit 5080e9c

Please sign in to comment.