platform/msm_shared/partition_parser.c
unsigned int
partition_read_table(struct mmc_boot_host *mmc_host,
		     struct mmc_boot_card *mmc_card)
{
	unsigned int ret;

	/* Read MBR of the card */
	ret = mmc_boot_read_mbr(mmc_host, mmc_card);
	if (ret != MMC_BOOT_E_SUCCESS) {
		dprintf(CRITICAL, "MMC Boot: MBR read failed!\n");
		return MMC_BOOT_E_FAILURE;
	}

	/* Read GPT of the card if exist */
	if (gpt_partitions_exist) {
		ret = mmc_boot_read_gpt(mmc_host, mmc_card);
		if (ret != MMC_BOOT_E_SUCCESS) {
			dprintf(CRITICAL, "MMC Boot: GPT read failed!\n");
			return MMC_BOOT_E_FAILURE;
		}
	}
	return MMC_BOOT_E_SUCCESS;
}
//TODO: Remove the dependency of mmc in these functions
Remove the dependency of mmc in these functions
Remove the dependency of mmc in these functions
unsigned int
partition_read_table(struct mmc_boot_host *mmc_host,
		     struct mmc_boot_card *mmc_card)
{
	unsigned int ret;
	ret = mmc_boot_read_mbr(mmc_host, mmc_card);
	if (ret != MMC_BOOT_E_SUCCESS) {
		dprintf(CRITICAL, "MMC Boot: MBR read failed!\n");
		return MMC_BOOT_E_FAILURE;
	}
	if (gpt_partitions_exist) {
		ret = mmc_boot_read_gpt(mmc_host, mmc_card);
		if (ret != MMC_BOOT_E_SUCCESS) {
			dprintf(CRITICAL, "MMC Boot: GPT read failed!\n");
			return MMC_BOOT_E_FAILURE;
		}
	}
	return MMC_BOOT_E_SUCCESS;
}
unsigned int partition_read_table ( struct mmc_boot_host * mmc_host , struct mmc_boot_card * mmc_card ) { unsigned int ret ; ret = mmc_boot_read_mbr ( mmc_host , mmc_card ) ; if ( ret != MMC_BOOT_E_SUCCESS ) { dprintf ( CRITICAL , " \n " ) ; return MMC_BOOT_E_FAILURE ; } if ( gpt_partitions_exist ) { ret = mmc_boot_read_gpt ( mmc_host , mmc_card ) ; if ( ret != MMC_BOOT_E_SUCCESS ) { dprintf ( CRITICAL , " \n " ) ; return MMC_BOOT_E_FAILURE ; } } return MMC_BOOT_E_SUCCESS ; }
TODO: Remove the dependency of mmc in these functions
TODO : Remove the dependency of mmc in these functions
/* Read MBR of the card */ /* Read GPT of the card if exist */