dm: mmc: Use bootdev_setup_sibling_blk()
authorSimon Glass <sjg@chromium.org>
Tue, 17 Jan 2023 17:47:25 +0000 (10:47 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 23 Jan 2023 23:11:39 +0000 (18:11 -0500)
commit3a2cb96e5dde427ccb670640a6a5fa1d61519a9b
tree41a4e1217e74afd3b3392ae0b3b88e7eaca6ee21
parentd0075059e4d942ac0dc7397fb7fa6646a211c917
dm: mmc: Use bootdev_setup_sibling_blk()

At present MMC uses the bootdev_setup_for_dev() function to set up the
bootdev. This is because MMC only has one block-device child, so does not
need to worry about naming of the bootdev.

However this inconsistency with other bootdevs that use block devices is a
bit annoying. The only real reason for it is to have a name like
'mmc0.bootdev' instead of 'mmc0.blk.bootdev'.

Update bootdev_setup_sibling_blk() to drop '.blk' from the name where it
appears, thus removing the only reason to use the bootdev_setup_for_dev().
Switch MMC over to the subling function.

Signed-off-by: Simon Glass <sjg@chromium.org>
boot/bootdev-uclass.c
drivers/mmc/mmc-uclass.c
include/bootdev.h