mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Signed-off-by: Mike Frysinger <[email protected]> Cc: <[email protected]> Signed-off-by: Chris Ball <[email protected]>
This commit is contained in:
parent
548f07d2a3
commit
a34650f0f1
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue