diff options
author | Michael Neuling <mikey@neuling.org> | 2015-02-20 11:37:52 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-02-23 13:35:48 +1100 |
commit | 8f22127ec50e6fa946f09af1e610b38555f11edd (patch) | |
tree | 33a1ed657a634a464471c59ba67d4df0a4d2a5df /core | |
parent | 323d0642bebb9b6365df7a98bfc77e9cd6be915f (diff) | |
download | skiboot-8f22127ec50e6fa946f09af1e610b38555f11edd.zip skiboot-8f22127ec50e6fa946f09af1e610b38555f11edd.tar.gz skiboot-8f22127ec50e6fa946f09af1e610b38555f11edd.tar.bz2 |
libffs: Add ecc parameter on ffs_part_info()
Add ecc parmenter to ffs_part_info() to indicate if the partition is ECC
protected or not. Fix all call sites.
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/flash.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/flash.c b/core/flash.c index a256252..e107aaf 100644 --- a/core/flash.c +++ b/core/flash.c @@ -117,7 +117,7 @@ static int flash_nvram_probe(struct flash *flash, struct ffs_handle *ffs) } rc = ffs_part_info(ffs, part, NULL, - &start, &size, NULL); + &start, &size, NULL, NULL); if (rc) { prlog(PR_ERR, "FLASH: Can't parse ffs info for NVRAM\n"); return OPAL_HARDWARE; @@ -172,7 +172,7 @@ static void flash_add_dt_node(struct flash *flash, int id, char *name; int rc; - rc = ffs_part_info(ffs, i, &name, &start, NULL, &size); + rc = ffs_part_info(ffs, i, &name, &start, NULL, &size, NULL); if (rc) break; @@ -483,7 +483,7 @@ bool flash_load_resource(enum resource_id id, uint32_t subid, goto out_free_ffs; } rc = ffs_part_info(ffs, part_num, NULL, - &part_start, &part_size, NULL); + &part_start, &part_size, NULL, NULL); if (rc) { prerror("FLASH: Failed to get %s partition info\n", name); goto out_free_ffs; |