Re: [PATCH 1/1] mmc: sdhci-sirf: Fix build breakage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
Cc: Christian Daudt <csd@xxxxxxxxxxxx>
Cc: Barry Song <Baohua.Song@xxxxxxx>
---
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@xxxxxxxxxxxx>

 Thanks,
   csd


--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux