spl: mmc: Fix indentation in spl_mmc.c file
This fixes a wrongly indented block of code. Signed-off-by: Mans Rullgard <mans@mansr.com> [lukma: Make the commit message more verbose] Signed-off-by: Lukasz Majewski <lukma@denx.de>
This commit is contained in:
parent
e8e9715df2
commit
9243990b17
@ -355,28 +355,28 @@ int spl_mmc_load(struct spl_image_info *spl_image,
|
|||||||
err = -EINVAL;
|
err = -EINVAL;
|
||||||
switch (boot_mode) {
|
switch (boot_mode) {
|
||||||
case MMCSD_MODE_EMMCBOOT:
|
case MMCSD_MODE_EMMCBOOT:
|
||||||
/*
|
/*
|
||||||
* We need to check what the partition is configured to.
|
* We need to check what the partition is configured to.
|
||||||
* 1 and 2 match up to boot0 / boot1 and 7 is user data
|
* 1 and 2 match up to boot0 / boot1 and 7 is user data
|
||||||
* which is the first physical partition (0).
|
* which is the first physical partition (0).
|
||||||
*/
|
*/
|
||||||
part = (mmc->part_config >> 3) & PART_ACCESS_MASK;
|
part = (mmc->part_config >> 3) & PART_ACCESS_MASK;
|
||||||
|
|
||||||
if (part == 7)
|
if (part == 7)
|
||||||
part = 0;
|
part = 0;
|
||||||
|
|
||||||
if (CONFIG_IS_ENABLED(MMC_TINY))
|
if (CONFIG_IS_ENABLED(MMC_TINY))
|
||||||
err = mmc_switch_part(mmc, part);
|
err = mmc_switch_part(mmc, part);
|
||||||
else
|
else
|
||||||
err = blk_dselect_hwpart(mmc_get_blk_desc(mmc), part);
|
err = blk_dselect_hwpart(mmc_get_blk_desc(mmc), part);
|
||||||
|
|
||||||
if (err) {
|
if (err) {
|
||||||
#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT
|
#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT
|
||||||
puts("spl: mmc partition switch failed\n");
|
puts("spl: mmc partition switch failed\n");
|
||||||
#endif
|
#endif
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
/* Fall through */
|
/* Fall through */
|
||||||
case MMCSD_MODE_RAW:
|
case MMCSD_MODE_RAW:
|
||||||
debug("spl: mmc boot mode: raw\n");
|
debug("spl: mmc boot mode: raw\n");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user