diff mbox

[2/2] mmc: sdhci_f_sdh30: Fix the size passed to sdhci_alloc_host

Message ID 1429858920.18906.2.camel@ingics.com (mailing list archive)
State New, archived
Headers show

Commit Message

Axel Lin April 24, 2015, 7:02 a.m. UTC
sdhci_alloc_host() takes priv_size rather than
sizeof(struct sdhci_host) + priv_size.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/mmc/host/sdhci_f_sdh30.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Ulf Hansson May 5, 2015, 8:34 a.m. UTC | #1
On 24 April 2015 at 09:02, Axel Lin <axel.lin@ingics.com> wrote:
> sdhci_alloc_host() takes priv_size rather than
> sizeof(struct sdhci_host) + priv_size.
>
> Signed-off-by: Axel Lin <axel.lin@ingics.com>

Thanks, applied!

Kind regards
Uffe


> ---
>  drivers/mmc/host/sdhci_f_sdh30.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/mmc/host/sdhci_f_sdh30.c b/drivers/mmc/host/sdhci_f_sdh30.c
> index 5397e27..983b8b3 100644
> --- a/drivers/mmc/host/sdhci_f_sdh30.c
> +++ b/drivers/mmc/host/sdhci_f_sdh30.c
> @@ -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);
>
> --
> 2.1.0
>
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/mmc/host/sdhci_f_sdh30.c b/drivers/mmc/host/sdhci_f_sdh30.c
index 5397e27..983b8b3 100644
--- a/drivers/mmc/host/sdhci_f_sdh30.c
+++ b/drivers/mmc/host/sdhci_f_sdh30.c
@@ -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);