Commit 2dbf1dc3 authored by Axel Lin's avatar Axel Lin Committed by Ulf Hansson

mmc: sdhci_f_sdh30: Fix the size passed to sdhci_alloc_host

sdhci_alloc_host() takes priv_size rather than
sizeof(struct sdhci_host) + priv_size.
Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent cee4e7a5
...@@ -114,8 +114,7 @@ static int sdhci_f_sdh30_probe(struct platform_device *pdev) ...@@ -114,8 +114,7 @@ static int sdhci_f_sdh30_probe(struct platform_device *pdev)
return irq; return irq;
} }
host = sdhci_alloc_host(dev, sizeof(struct sdhci_host) + host = sdhci_alloc_host(dev, sizeof(struct f_sdhost_priv));
sizeof(struct f_sdhost_priv));
if (IS_ERR(host)) if (IS_ERR(host))
return PTR_ERR(host); return PTR_ERR(host);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment