* [PATCH] mfd: sh_mobile_sdhi MMC_CAP_MMC_HIGHSPEED support
@ 2010-02-22 4:37 Magnus Damm
0 siblings, 0 replies; only message in thread
From: Magnus Damm @ 2010-02-22 4:37 UTC (permalink / raw)
To: linux-kernel; +Cc: Magnus Damm, lethal, sameo, linux-sh
From: Magnus Damm <damm@opensource.se>
Add MMC_CAP_MMC_HIGHSPEED support to the sh_mobile_sdhi
driver. Also, remove type cast and FIXME comment.
Signed-off-by: Magnus Damm <damm@opensource.se>
---
Depends on the series:
"[PATCH 00/05] tmio_mmc: SDHI hotplug and random fixes"
drivers/mfd/sh_mobile_sdhi.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--- 0001/drivers/mfd/sh_mobile_sdhi.c
+++ work/drivers/mfd/sh_mobile_sdhi.c 2010-02-22 11:51:12.000000000 +0900
@@ -21,7 +21,7 @@
#include <linux/kernel.h>
#include <linux/clk.h>
#include <linux/platform_device.h>
-
+#include <linux/mmc/host.h>
#include <linux/mfd/core.h>
#include <linux/mfd/tmio.h>
#include <linux/mfd/sh_mobile_sdhi.h>
@@ -95,9 +95,9 @@ static int __init sh_mobile_sdhi_probe(s
clk_enable(priv->clk);
- /* FIXME: silly const unsigned int hclk */
- *(unsigned int *)&priv->mmc_data.hclk = clk_get_rate(priv->clk);
+ priv->mmc_data.hclk = clk_get_rate(priv->clk);
priv->mmc_data.set_pwr = sh_mobile_sdhi_set_pwr;
+ priv->mmc_data.capabilities = MMC_CAP_MMC_HIGHSPEED;
memcpy(&priv->cell_mmc, &sh_mobile_sdhi_cell, sizeof(priv->cell_mmc));
priv->cell_mmc.driver_data = &priv->mmc_data;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-02-22 4:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-22 4:37 [PATCH] mfd: sh_mobile_sdhi MMC_CAP_MMC_HIGHSPEED support Magnus Damm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).