lkml.org 
[lkml]   [2015]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] mmc: sdhci-of-arasan: Call OF parsing for MMC
From
On 7 April 2015 at 07:57, Michal Simek <michal.simek@xilinx.com> wrote:
> Also check MMC OF properties. The controller supports MMC too.
>
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>

Thanks! Applied.

Kind regards
Uffe


> ---
>
> drivers/mmc/host/sdhci-of-arasan.c | 6 ++++++
> 1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/mmc/host/sdhci-of-arasan.c b/drivers/mmc/host/sdhci-of-arasan.c
> index bcb51e9..b8cfac1 100644
> --- a/drivers/mmc/host/sdhci-of-arasan.c
> +++ b/drivers/mmc/host/sdhci-of-arasan.c
> @@ -173,6 +173,12 @@ static int sdhci_arasan_probe(struct platform_device *pdev)
> pltfm_host->priv = sdhci_arasan;
> pltfm_host->clk = clk_xin;
>
> + ret = mmc_of_parse(host->mmc);
> + if (ret) {
> + dev_err(&pdev->dev, "parsing dt failed (%u)\n", ret);
> + goto clk_disable_all;
> + }
> +
> ret = sdhci_add_host(host);
> if (ret)
> goto err_pltfm_free;
> --
> 1.7.2.3
>


\
 
 \ /
  Last update: 2015-04-08 12:41    [W:0.032 / U:0.256 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site