]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: sdhci-pltfm: Add a common clk API implementation of get_timeout_clock
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 28 Jan 2013 18:27:12 +0000 (19:27 +0100)
committerChris Ball <cjb@laptop.org>
Tue, 12 Feb 2013 15:42:17 +0000 (10:42 -0500)
commit60267a3e7387311e324c5d335da6860f5c9e980b
tree1cf5e1c0c6fc304e387705d00d72a82c50f82b10
parent3714f4315354b428fac70ffd98a4ac4e82ce107a
mmc: sdhci-pltfm: Add a common clk API implementation of get_timeout_clock

Quite a few drivers have a implementation of the get_timeout_clock
callback which simply returns the result of clk_get_rate on the device's
clock. This patch adds a common implementation of this to the sdhci-pltfm
module and replaces all custom implementations with the common one.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Tested-by: Stephen Warren <swarren@wwwdotorg.org>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Tested-by: Kevin Liu <kliu5@marvell.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci-bcm2835.c
drivers/mmc/host/sdhci-esdhc-imx.c
drivers/mmc/host/sdhci-pltfm.c
drivers/mmc/host/sdhci-pltfm.h
drivers/mmc/host/sdhci-pxav2.c
drivers/mmc/host/sdhci-pxav3.c