Skip to content

Commit

Permalink
ARM: SAMSUNG: Add error printing to s3c24xx_register_clocks
Browse files Browse the repository at this point in the history
Add an error print to s3c24xx_register_clocks to provide more useful
information when failing to register the clock.

I belive this was originally left out due to the possibility of a
problem with low-level debugging code. However, if the low-level
debug code is not functional by now there will be a whole other set of
problems being presented to the system.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
  • Loading branch information
Ben Dooks committed Jan 26, 2010
1 parent 8428d47 commit 50ee2d3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion arch/arm/plat-samsung/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,12 @@ int s3c24xx_register_clocks(struct clk **clks, int nr_clks)
int fails = 0;

for (; nr_clks > 0; nr_clks--, clks++) {
if (s3c24xx_register_clock(*clks) < 0)
if (s3c24xx_register_clock(*clks) < 0) {
struct clk *clk = *clks;
printk(KERN_ERR "%s: failed to register %p: %s\n",
__func__, clk, clk->name);
fails++;
}
}

return fails;
Expand Down

0 comments on commit 50ee2d3

Please sign in to comment.