]> git.baikalelectronics.ru Git - kernel.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)
commit2e280f1288dacbcf973eb6027fdca530abfe2f1e
tree1cf5e1c0c6fc304e387705d00d72a82c50f82b10
parent1bcb2ef5efa9c88e058a615ce0ee788e4d39241c
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