summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/bfin_sdh.c
diff options
context:
space:
mode:
authorSonic Zhang2011-01-12 04:39:35 +0100
committerChris Ball2011-01-26 06:28:41 +0100
commita34650f0f1ca589cda09c48cb62baf15e680a247 (patch)
treea3d327b9f7b5c7eccd3242c4942317ac3e4a8cc4 /drivers/mmc/host/bfin_sdh.c
parentmmc: sdhci-s3c: add platform_8bit_width() hook (diff)
downloadkernel-qcow2-linux-a34650f0f1ca589cda09c48cb62baf15e680a247.tar.gz
kernel-qcow2-linux-a34650f0f1ca589cda09c48cb62baf15e680a247.tar.xz
kernel-qcow2-linux-a34650f0f1ca589cda09c48cb62baf15e680a247.zip
mmc: bfin_sdh: fix alloc size for private data
The bfin_sdh driver allocates the wrong size for the private data in the mmc_host. The first parameter of mmc_alloc_host should be the size of the local driver struct rather than the common mmc_host. Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Cc: <stable@kernel.org> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/bfin_sdh.c')
-rw-r--r--drivers/mmc/host/bfin_sdh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/bfin_sdh.c b/drivers/mmc/host/bfin_sdh.c
index bac7d62866b7..0371bf502249 100644
--- a/drivers/mmc/host/bfin_sdh.c
+++ b/drivers/mmc/host/bfin_sdh.c
@@ -462,7 +462,7 @@ static int __devinit sdh_probe(struct platform_device *pdev)
goto out;
}
- mmc = mmc_alloc_host(sizeof(*mmc), &pdev->dev);
+ mmc = mmc_alloc_host(sizeof(struct sdh_host), &pdev->dev);
if (!mmc) {
ret = -ENOMEM;
goto out;