[ARM] 5536/1: Move clk_add_alias() to arch/arm/common/clkdev.c
authorTony Lindgren <tony@atomide.com>
Wed, 3 Jun 2009 16:43:14 +0000 (17:43 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 4 Jun 2009 16:45:43 +0000 (17:45 +0100)
commitc0683039207226afcffbe0fbf6a1caaee77a37b0
treed91295ea184722929a12c772839c3d6f502ad95b
parent5926a295bb78272b3f648f62febecd19a1b6a6ca
[ARM] 5536/1: Move clk_add_alias() to arch/arm/common/clkdev.c

This can be used for other arm platforms too as discussed
on the linux-arm-kernel list.

Also check the return value with IS_ERR and return PTR_ERR
as suggested by Russell King.

Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/common/clkdev.c
arch/arm/mach-pxa/clock.c
include/linux/clk.h