]> git.sur5r.net Git - u-boot/commit
mmc: sunxi: fix legacy MMC initialisation
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 23 Aug 2017 11:41:33 +0000 (13:41 +0200)
committerJagan Teki <jagan@amarulasolutions.com>
Mon, 28 Aug 2017 17:08:05 +0000 (22:38 +0530)
commitead3697d7ec491c055fe546b3a45bcfba45fa022
tree518445c11387021ae03817f8e0fd0191dc888f60
parentc9319b3f204583f5c415db8865492a76ab9425b3
mmc: sunxi: fix legacy MMC initialisation

The driver-model rework changed, among other things, the way the private
data were moved around. It now uses the private field in the struct mmc.

However, the mmc_create argument was changed in the process to always pass
the array we used to have to store our private structures.

The basically means that all the MMC driver instances will now have the
private data of the first instance, which obviously doesn't work very well.

Pass the proper pointer to mmc_create.

Fixes: 034e226bc77e ("dm: mmc: sunxi: Pass private data around explicitly")
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Tested-by: Chen-Yu Tsai <wens@csie.org>
Tested-by: Jagan Teki <jagan@openedev.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
drivers/mmc/sunxi_mmc.c