]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd9773711718837d05249663f5404a8471bee01dd
treecaa7ff2433c3a8aa75a83d359fa335a03e5ab843
parent4123a2ede6ab75901e28b9cfe75c44818b04865c
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