]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc-uclass: correct the device number
authorKever Yang <kever.yang@rock-chips.com>
Fri, 22 Jul 2016 09:22:50 +0000 (17:22 +0800)
committerSimon Glass <sjg@chromium.org>
Sun, 31 Jul 2016 13:24:20 +0000 (07:24 -0600)
commit46683f3da191a4c2156d5473c23b9923c461912c
tree215fabaa1e45e5bbc1f8e1766c2c152f63445696
parent5c928d02044345b843202f23540c3765468c1d6f
mmc-uclass: correct the device number

Not like the mmc-legacy which the devnum starts from 1, it starts from 0
in mmc-uclass, so the device number should be (devnum + 1) in get_mmc_num().

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Acked-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/mmc-uclass.c
include/mmc.h