mmc: card: block: remove amlogic specific function call
authorJaehoon Chung <jh80.chung@samsung.com>
Tue, 26 May 2020 07:52:19 +0000 (16:52 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 2 Dec 2020 04:43:05 +0000 (13:43 +0900)
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 <jh80.chung@samsung.com>
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
drivers/mmc/card/block.c

index fcd27b8..4bc2289 100644 (file)
@@ -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,12 +3082,19 @@ 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) {
                if (mmc_add_disk(part_md))