linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Christian Daudt" <csd@broadcom.com>
To: Sachin Kamat <sachin.kamat@linaro.org>
Cc: linux-mmc@vger.kernel.org, cjb@laptop.org,
	Barry Song <Baohua.Song@csr.com>
Subject: Re: [PATCH 1/1] mmc: sdhci-sirf: Fix build breakage
Date: Fri, 21 Jun 2013 08:46:28 -0700	[thread overview]
Message-ID: <51C47554.7040400@broadcom.com> (raw)
In-Reply-To: <1371545694-31877-1-git-send-email-sachin.kamat@linaro.org>

On 13-06-18 01:54 AM, Sachin Kamat wrote:
> Commit 0e74823429 ("mmc: sdhci: Add size for caller in init+register")
> introduced size parameter to sdhci_pltfm_init(). This driver probably
> got left out during the conversion. Passing in zero as done for other
> drivers to avoid the following build error:
>
> drivers/mmc/host/sdhci-sirf.c: In function ‘sdhci_sirf_probe’:
> drivers/mmc/host/sdhci-sirf.c:78:2: error: too few arguments to function
> ‘sdhci_pltfm_init’
>    host = sdhci_pltfm_init(pdev, &sdhci_sirf_pdata);
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> Cc: Christian Daudt <csd@broadcom.com>
> Cc: Barry Song <Baohua.Song@csr.com>
> ---
> Compile tested on linux-next (20130618)
> ---
>   drivers/mmc/host/sdhci-sirf.c |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mmc/host/sdhci-sirf.c b/drivers/mmc/host/sdhci-sirf.c
> index 09805af..1a149eb 100644
> --- a/drivers/mmc/host/sdhci-sirf.c
> +++ b/drivers/mmc/host/sdhci-sirf.c
> @@ -75,7 +75,7 @@ static int sdhci_sirf_probe(struct platform_device *pdev)
>   		priv->gpio_cd = -EINVAL;
>   	}
>   
> -	host = sdhci_pltfm_init(pdev, &sdhci_sirf_pdata);
> +	host = sdhci_pltfm_init(pdev, &sdhci_sirf_pdata, 0);
>   	if (IS_ERR(host)) {
>   		ret = PTR_ERR(host);
>   		goto err_sdhci_pltfm_init;
Acked-by: Christian Daudt <csd@broadcom.com>

  Thanks,
    csd



      reply	other threads:[~2013-06-21 15:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-18  8:54 [PATCH 1/1] mmc: sdhci-sirf: Fix build breakage Sachin Kamat
2013-06-21 15:46 ` Christian Daudt [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51C47554.7040400@broadcom.com \
    --to=csd@broadcom.com \
    --cc=Baohua.Song@csr.com \
    --cc=cjb@laptop.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=sachin.kamat@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).