wlcore/wl18xx: fw logger over sdio
[deliverable/linux.git] / drivers / net / wireless / ti / wlcore / io.c
index 68e74eefd296e5deb719dafe2da7454405055d8c..9ac118e727e9402032bdfe972ee40c9d34d12a00 100644 (file)
@@ -175,12 +175,13 @@ 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;
This page took 0.031141 seconds and 5 git commands to generate.