Skip to content

Commit

Permalink
ARM: ux500: Add placeholder for clk_set_parent
Browse files Browse the repository at this point in the history
Calling clk_set_parent (e.g. from Ux500 ASoC-driver) generates
build-errors.

Signed-off-by: Ola Lilja <ola.o.lilja@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Ola Lilja authored and Linus Walleij committed Feb 29, 2012
1 parent b01543d commit 25cb3b4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions arch/arm/mach-ux500/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,13 @@ int clk_set_rate(struct clk *clk, unsigned long rate)
}
EXPORT_SYMBOL(clk_set_rate);

int clk_set_parent(struct clk *clk, struct clk *parent)
{
/*TODO*/
return -ENOSYS;
}
EXPORT_SYMBOL(clk_set_parent);

static void clk_prcmu_enable(struct clk *clk)
{
void __iomem *cg_set_reg = __io_address(U8500_PRCMU_BASE)
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-ux500/clock.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ struct clkops {
void (*enable) (struct clk *);
void (*disable) (struct clk *);
unsigned long (*get_rate) (struct clk *);
int (*set_parent)(struct clk *, struct clk *);
};

/**
Expand Down

0 comments on commit 25cb3b4

Please sign in to comment.