mmc: bfin_sdh: fix alloc size for private data
commit23a3d92534425a5498934aa900ab5e909ad779e3
authorSonic Zhang <sonic.zhang@analog.com>
Wed, 12 Jan 2011 03:39:35 +0000 (11 22:39 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 23:14:36 +0000 (17 15:14 -0800)
tree86f37d5ec9e2b9a74b3f5e82ae67fbf95c8fb96c
parente0b13612453fee51e01961940c77167ee9b0e7ff
mmc: bfin_sdh: fix alloc size for private data

commit a34650f0f1ca589cda09c48cb62baf15e680a247 upstream.

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>
Signed-off-by: Chris Ball <cjb@laptop.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/mmc/host/bfin_sdh.c