From: Simon Glass Date: Fri, 12 Aug 2022 01:34:55 +0000 (-0600) Subject: blk: Drop IF_TYPE_SD X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=1dbe71fbb83891967cd4ce58118e008b03a90e73;p=u-boot.git blk: Drop IF_TYPE_SD This is not really needed since it does the same things as MMC. Drop it. Signed-off-by: Simon Glass --- diff --git a/disk/part.c b/disk/part.c index a5c1d7a0ae..2bcc6f4f40 100644 --- a/disk/part.c +++ b/disk/part.c @@ -135,7 +135,6 @@ void dev_print (struct blk_desc *dev_desc) dev_desc->revision, dev_desc->product); break; - case IF_TYPE_SD: case IF_TYPE_MMC: case IF_TYPE_USB: case IF_TYPE_NVME: @@ -772,7 +771,6 @@ void part_set_generic_name(const struct blk_desc *dev_desc, devtype = "usbd"; break; case IF_TYPE_MMC: - case IF_TYPE_SD: devtype = "mmcsd"; break; default: diff --git a/drivers/block/blk-uclass.c b/drivers/block/blk-uclass.c index 57230e9bab..2fa6a7e688 100644 --- a/drivers/block/blk-uclass.c +++ b/drivers/block/blk-uclass.c @@ -22,7 +22,6 @@ static const char *if_typename_str[IF_TYPE_COUNT] = { [IF_TYPE_SCSI] = "scsi", [IF_TYPE_USB] = "usb", [IF_TYPE_MMC] = "mmc", - [IF_TYPE_SD] = "sd", [IF_TYPE_SATA] = "sata", [IF_TYPE_HOST] = "host", [IF_TYPE_NVME] = "nvme", @@ -37,7 +36,6 @@ static enum uclass_id if_type_uclass_id[IF_TYPE_COUNT] = { [IF_TYPE_SCSI] = UCLASS_SCSI, [IF_TYPE_USB] = UCLASS_MASS_STORAGE, [IF_TYPE_MMC] = UCLASS_MMC, - [IF_TYPE_SD] = UCLASS_INVALID, [IF_TYPE_SATA] = UCLASS_AHCI, [IF_TYPE_HOST] = UCLASS_ROOT, [IF_TYPE_NVME] = UCLASS_NVME, diff --git a/include/blk.h b/include/blk.h index c7461f9f35..cc30e3861f 100644 --- a/include/blk.h +++ b/include/blk.h @@ -33,7 +33,6 @@ enum if_type { IF_TYPE_SCSI, IF_TYPE_USB, IF_TYPE_MMC, - IF_TYPE_SD, IF_TYPE_SATA, IF_TYPE_HOST, IF_TYPE_NVME,