Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -114,8 +114,7 @@ static int sdhci_f_sdh30_probe(struct platform_device *pdev)
		return irq;
	}

	host = sdhci_alloc_host(dev, sizeof(struct sdhci_host) +
						sizeof(struct f_sdhost_priv));
	host = sdhci_alloc_host(dev, sizeof(struct f_sdhost_priv));
	if (IS_ERR(host))
		return PTR_ERR(host);