Skip to content
Commit ead3697d authored by Maxime Ripard's avatar Maxime Ripard Committed by Jagan Teki
Browse files

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: 034e226b ("dm: mmc: sunxi: Pass private data around explicitly")
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
Tested-by: default avatarChen-Yu Tsai <wens@csie.org>
Tested-by: default avatarJagan Teki <jagan@openedev.com>
Reviewed-by: default avatarJagan Teki <jagan@openedev.com>
parent c9319b3f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment