|
@@ -175,14 +175,14 @@ int wlcore_set_partition(struct wl1271 *wl,
|
|
|
if (ret < 0)
|
|
|
goto out;
|
|
|
|
|
|
+ /* We don't need the size of the last partition, as it is
|
|
|
+ * automatically calculated based on the total memory size and
|
|
|
+ * the sizes of the previous partitions.
|
|
|
+ */
|
|
|
ret = wlcore_raw_write32(wl, HW_PART3_START_ADDR, p->mem3.start);
|
|
|
if (ret < 0)
|
|
|
goto out;
|
|
|
|
|
|
- ret = wlcore_raw_write32(wl, HW_PART3_SIZE_ADDR, p->mem3.size);
|
|
|
- if (ret < 0)
|
|
|
- goto out;
|
|
|
-
|
|
|
out:
|
|
|
return ret;
|
|
|
}
|