]> git.baikalelectronics.ru Git - uboot.git/commit
mmc: Check for device with a seq number equal to num before checking against index
authorAswath Govindraju <a-govindraju@ti.com>
Thu, 25 Mar 2021 07:18:47 +0000 (12:48 +0530)
committerPeng Fan <peng.fan@nxp.com>
Tue, 6 Apr 2021 10:36:27 +0000 (18:36 +0800)
commitaa16ab510f125743d160cb29cbfa2d109819c14d
tree9114c9e2b04ce39a98b5fd55e2fc78bc41b8b88c
parent6c7c0f068efee74ad61dbb864677f81106554ecb
mmc: Check for device with a seq number equal to num before checking against index

First check if there is an alias for the device tree node defined with the
given num before checking against device index.

Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/mmc.c