dm: mmc_spi: Fix NULL pointer dereference in mmc_spi_bind()
The mmc_spi driver's priv is not available in its bind phase(). Use platdata instead. Fixes: 05e35d42 ("mmc: mmc_spi: Re-write driver using DM framework") Signed-off-by: NBin Meng <bmeng.cn@gmail.com> Reviewed-by: NPeng Fan <peng.fan@nxp.com>
Showing
想要评论请 注册 或 登录