]> git.proxmox.com Git - mirror_ubuntu-kernels.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>
Sun, 24 Feb 2013 19:37:09 +0000 (14:37 -0500)
commitd005d94359a8df84ea6e5ac137393707f9e87e81
tree1cf5e1c0c6fc304e387705d00d72a82c50f82b10
parent20b92a30b5610a5222060417961bc4ccb42ea5a5
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