ARM: dw_mmc: Exclude dwmci Exynos priv_data allocation from exynos_dwmci_get_config()
authorLukasz Majewski <lukma@denx.de>
Wed, 1 Aug 2018 12:48:53 +0000 (14:48 +0200)
committerMinkyu Kang <mk7.kang@samsung.com>
Mon, 6 Aug 2018 01:53:53 +0000 (10:53 +0900)
commitb88c1efadbf061c2e2b0bf80738892fc7559094e
treecfedf54f5a0c287ac27076cb7178099c217aa626
parentd06ac6034d798a339c58246d81763a074f742835
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: Lukasz Majewski <lukma@denx.de>
Tested-by: Anand Moon <linux.amoon@gmail.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
drivers/mmc/exynos_dw_mmc.c