fix up implementation of int get_partition_device
Change-Id: I142b15228322790892dd07b10d6a3f31440badc7
This commit is contained in:
parent
d771acbed0
commit
12154200a7
@ -579,12 +579,13 @@ int mount_partition(const char *partition, const char *mount_point, const char *
|
||||
return mmc_mount_partition(p, mount_point, read_only);
|
||||
}
|
||||
|
||||
const char* get_partition_device(const char *partition)
|
||||
int get_partition_device(const char *partition, char *device)
|
||||
{
|
||||
mmc_scan_partitions();
|
||||
const MmcPartition *p;
|
||||
p = mmc_find_partition_by_name(partition);
|
||||
if (p == NULL)
|
||||
return NULL;
|
||||
return p->device_index;
|
||||
return -1;
|
||||
strcpy(device, p->device_index);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user