]> bbs.cooldavid.org Git - net-next-2.6.git/commit - drivers/mmc/host/sdhci.h
sdhci: Add get_{max,timeout}_clock callbacks
authorBen Dooks <ben-linux@fluff.org>
Mon, 16 Mar 2009 21:13:57 +0000 (00:13 +0300)
committerPierre Ossman <drzeus@drzeus.cx>
Tue, 24 Mar 2009 20:30:09 +0000 (21:30 +0100)
commit4240ff0a02cb52f7d10dc1df6d82ba9c27dba07b
tree99d88747457b500fe975832d6e721f76ec4e70c0
parentc5075a1089e808d8f471ce21b02810cc98ab2692
sdhci: Add get_{max,timeout}_clock callbacks

Some controllers do not provide clock information in their capabilities
(in the Samsung case, it is because there are multiple clock sources
available to the controller). Add hooks to allow the system to supply
clock information.

p.s.
In the original Ben's patch there was a bug that makes sdhci_add_host()
return -ENODEV even if callbacks were specified. This is fixed now.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
drivers/mmc/host/sdhci.c
drivers/mmc/host/sdhci.h