提交 2dbf1dc3 编写于 作者: A Axel Lin 提交者: 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: NAxel Lin <axel.lin@ingics.com>
Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册