ARM: dw_mmc: Exclude dwmci Exynos priv_data allocation from exynos_dwmci_get_config()
This commit prevents memory leak when this function is used with DM_MMC as the struct dwmci_exynos_priv_data is already allocated by DM. It is necessary for NON DM aware devices to allocate this struct first. Signed-off-by: NLukasz Majewski <lukma@denx.de> Tested-by: NAnand Moon <linux.amoon@gmail.com> Signed-off-by: NMinkyu Kang <mk7.kang@samsung.com>
Showing
想要评论请 注册 或 登录