mmc: mtk-sd: check for valid optional memory resource
authorFabien Parent <fparent@baylibre.com>
Wed, 3 Apr 2019 19:30:50 +0000 (21:30 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 15 Apr 2019 09:55:54 +0000 (11:55 +0200)
commitb65be6355183f6cb82518d02a4067239f6175558
treecaa7ff2433c3a8aa75a83d359fa335a03e5ab843
parentc278150e0d2a4ac0551f86c9db042665ad51c1e4
mmc: mtk-sd: check for valid optional memory resource

'top_base' memory region is optional. Check that the resource is valid
before using it. This avoid getting a "invalid resource" error message
printed by the kernel.

Signed-off-by: Fabien Parent <fparent@baylibre.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mtk-sd.c