From: Jaehoon Chung Date: Tue, 26 May 2020 07:52:19 +0000 (+0900) Subject: mmc: card: block: remove amlogic specific function call X-Git-Tag: submit/tizen/20201211.030542~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e891065f5d348f9b178c4633371bce455ccdfa9b;p=platform%2Fkernel%2Flinux-amlogic.git mmc: card: block: remove amlogic specific function call Remove amlogic specific function call. When called aml_emmc_partition_ops(), it's only used amlogic specific platform. Tizen doesn't need to call it. Signed-off-by: Jaehoon Chung Signed-off-by: Hoegeun Kwon --- diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index fcd27b8d748d..4bc22896ec29 100644 --- a/drivers/mmc/card/block.c +++ b/drivers/mmc/card/block.c @@ -3017,6 +3017,7 @@ static const struct mmc_fixup blk_fixups[] = END_FIXUP }; +#if 0 #ifdef CONFIG_AMLOGIC_MMC static int mmc_validate_mpt_partition(struct mmc_card *card) { @@ -3048,6 +3049,7 @@ static int mmc_validate_mpt_partition(struct mmc_card *card) return ret; } #endif +#endif static int mmc_blk_probe(struct mmc_card *card) { @@ -3080,11 +3082,18 @@ static int mmc_blk_probe(struct mmc_card *card) if (mmc_add_disk(md)) goto out; +#if 0 + /* + * It doesn't need to call emmc partition ops + * When called this function, removed mbr partition. + * Then it doesn't find the Tizen ROOTFS partition + */ #ifdef CONFIG_AMLOGIC_MMC if (mmc_validate_mpt_partition(card) == 0) { /* amlogic add emmc partitions ops */ aml_emmc_partition_ops(card, md->disk); } +#endif #endif list_for_each_entry(part_md, &md->part, part) {