Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: sh_mobile_sdhi MMC_CAP_MMC_HIGHSPEED support

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>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>

authored by

Magnus Damm and committed by
Samuel Ortiz
3c49e810 1bca748c

+3 -3
+3 -3
drivers/mfd/sh_mobile_sdhi.c
··· 21 21 #include <linux/kernel.h> 22 22 #include <linux/clk.h> 23 23 #include <linux/platform_device.h> 24 - 24 + #include <linux/mmc/host.h> 25 25 #include <linux/mfd/core.h> 26 26 #include <linux/mfd/tmio.h> 27 27 #include <linux/mfd/sh_mobile_sdhi.h> ··· 95 95 96 96 clk_enable(priv->clk); 97 97 98 - /* FIXME: silly const unsigned int hclk */ 99 - *(unsigned int *)&priv->mmc_data.hclk = clk_get_rate(priv->clk); 98 + priv->mmc_data.hclk = clk_get_rate(priv->clk); 100 99 priv->mmc_data.set_pwr = sh_mobile_sdhi_set_pwr; 100 + priv->mmc_data.capabilities = MMC_CAP_MMC_HIGHSPEED; 101 101 102 102 memcpy(&priv->cell_mmc, &sh_mobile_sdhi_cell, sizeof(priv->cell_mmc)); 103 103 priv->cell_mmc.driver_data = &priv->mmc_data;