OSDN Git Service

mmc: sdhci_f_sdh30: Fix the size passed to sdhci_alloc_host
authorAxel Lin <axel.lin@ingics.com>
Fri, 24 Apr 2015 07:02:00 +0000 (15:02 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 1 Jun 2015 07:06:46 +0000 (09:06 +0200)
sdhci_alloc_host() takes priv_size rather than
sizeof(struct sdhci_host) + priv_size.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci_f_sdh30.c

index 5397e27..983b8b3 100644 (file)
@@ -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);