diff mbox

mfd: sh_mobile_sdhi MMC_CAP_MMC_HIGHSPEED support

Message ID 20100222043709.4675.49750.sendpatchset@t400s (mailing list archive)
State Superseded
Headers show

Commit Message

Magnus Damm Feb. 22, 2010, 4:37 a.m. UTC
None
diff mbox

Patch

--- 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;