diff options
author | Christian Daudt <csd@broadcom.com> | 2013-05-29 13:50:05 -0700 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-05-31 11:59:29 -0400 |
commit | 0e748234293f5f2caa8dbd152caba5efb754c707 (patch) | |
tree | d264cb090be41c375de32707478036f2374eb543 /drivers/mmc/host/sdhci-cns3xxx.c | |
parent | 7396e318b497cd46eb156effa5278126582ddde7 (diff) | |
download | linux-0e748234293f5f2caa8dbd152caba5efb754c707.tar.gz linux-0e748234293f5f2caa8dbd152caba5efb754c707.tar.bz2 linux-0e748234293f5f2caa8dbd152caba5efb754c707.zip |
mmc: sdhci: Add size for caller in init+register
Add a param to allow users of sdhci_pltfm to allocate private space
in calls to sdhci_pltfm_init+sdhci_pltfm_register. This is implemented
in the same way as sdhci does for its users.
None of the users have been migrated yet and are passing in zero to
retain their private allocation.
- todo: migrate clients to using allocation this way
- todo: remove priv variable once migration is complete
Also removed unused variable in sdhci_pltfm_init fn
Signed-off-by: Christian Daudt <csd@broadcom.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/sdhci-cns3xxx.c')
-rw-r--r-- | drivers/mmc/host/sdhci-cns3xxx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci-cns3xxx.c b/drivers/mmc/host/sdhci-cns3xxx.c index 8ebb6b650f3f..f2cc26633cb2 100644 --- a/drivers/mmc/host/sdhci-cns3xxx.c +++ b/drivers/mmc/host/sdhci-cns3xxx.c @@ -96,7 +96,7 @@ static const struct sdhci_pltfm_data sdhci_cns3xxx_pdata = { static int sdhci_cns3xxx_probe(struct platform_device *pdev) { - return sdhci_pltfm_register(pdev, &sdhci_cns3xxx_pdata); + return sdhci_pltfm_register(pdev, &sdhci_cns3xxx_pdata, 0); } static int sdhci_cns3xxx_remove(struct platform_device *pdev) |