diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2023-07-16 13:34:44 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-07-25 12:44:46 -0400 |
commit | 8faeb1d7220efff3020d7e050d2a1768a3f426f4 (patch) | |
tree | f9b7b2f8bfed7058606a47bbebc72ae59f3adf0d /arch/arm/mach-omap2/utils.c | |
parent | d45f6c13f54919c040601132f3a569d053ece8cc (diff) |
part: eliminate part_get_info_by_name_type()
Since commit 56670d6fb83f ("disk: part: use common api to lookup part
driver") part_get_info_by_name_type() ignores the part_type parameter
used to restrict the partition table type.
omap_mmc_get_part_size() and part_get_info_by_name() are the only
consumers.
omap_mmc_get_part_size() calls with part_type = PART_TYPE_EFI because at
the time of implementation a speed up could be gained by passing the
partition table type. After 5 years experience without this restriction
it looks safe to keep it that way.
part_get_info_by_name() uses PART_TYPE_ALL.
Move the logic of part_get_info_by_name_type() to part_get_info_by_name()
and replace the function in omap_mmc_get_part_size().
Fixes: 56670d6fb83f ("disk: part: use common api to lookup part driver")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/arm/mach-omap2/utils.c')
-rw-r--r-- | arch/arm/mach-omap2/utils.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/utils.c b/arch/arm/mach-omap2/utils.c index 6e6791fc659..7d938724f84 100644 --- a/arch/arm/mach-omap2/utils.c +++ b/arch/arm/mach-omap2/utils.c @@ -100,8 +100,7 @@ static u32 omap_mmc_get_part_size(const char *part) return 0; } - /* Check only for EFI (GPT) partition table */ - res = part_get_info_by_name_type(dev_desc, part, &info, PART_TYPE_EFI); + res = part_get_info_by_name(dev_desc, part, &info); if (res < 0) return 0; |