dm: part: Rename some partition functions
Rename three partition functions so that they start with part_. This makes it clear what they relate to. Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Stephen Warren <swarren@nvidia.com>
This commit is contained in:
@@ -965,7 +965,7 @@ int scan_sata(int dev)
|
||||
/* Probe device and set xfer mode */
|
||||
bfin_ata_identify(ap, dev%PATA_DEV_NUM_PER_PORT);
|
||||
bfin_ata_set_Feature_cmd(ap, dev%PATA_DEV_NUM_PER_PORT);
|
||||
init_part(&sata_dev_desc[dev]);
|
||||
part_init(&sata_dev_desc[dev]);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -98,7 +98,7 @@ int host_dev_bind(int dev, char *filename)
|
||||
blk_dev->block_write = host_block_write;
|
||||
blk_dev->dev = dev;
|
||||
blk_dev->part_type = PART_TYPE_UNKNOWN;
|
||||
init_part(blk_dev);
|
||||
part_init(blk_dev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -124,7 +124,7 @@ struct blk_desc *systemace_get_dev(int dev)
|
||||
*/
|
||||
ace_writew(width == 8 ? 0 : 0x0001, 0);
|
||||
|
||||
init_part(&systemace_dev);
|
||||
part_init(&systemace_dev);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -355,7 +355,7 @@ int dfu_fill_entity_mmc(struct dfu_entity *dfu, char *devstr, char *s)
|
||||
int mmcdev = second_arg;
|
||||
int mmcpart = third_arg;
|
||||
|
||||
if (get_partition_info(blk_dev, mmcpart, &partinfo) != 0) {
|
||||
if (part_get_info(blk_dev, mmcpart, &partinfo) != 0) {
|
||||
error("Couldn't find part #%d on mmc device #%d\n",
|
||||
mmcpart, mmcdev);
|
||||
return -ENODEV;
|
||||
|
||||
@@ -1495,7 +1495,7 @@ static int mmc_startup(struct mmc *mmc)
|
||||
mmc->block_dev.revision[0] = 0;
|
||||
#endif
|
||||
#if !defined(CONFIG_SPL_BUILD) || defined(CONFIG_SPL_LIBDISK_SUPPORT)
|
||||
init_part(&mmc->block_dev);
|
||||
part_init(&mmc->block_dev);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user