wl18xx: fix PHY_INIT addresses mem size
authorIdo Reis <idor@ti.com>
Sun, 13 May 2012 12:27:17 +0000 (15:27 +0300)
committerLuciano Coelho <coelho@ti.com>
Thu, 7 Jun 2012 15:10:48 +0000 (18:10 +0300)
was hardcoded 252, now uses the parameters struct size.

Signed-off-by: Ido Reis <idor@ti.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/ti/wl18xx/main.c

index c8d45f011c63191f735615a3b3141ac19226a743..e030b1297a2b5ae8eefb599bcb68305d789980de 100644 (file)
@@ -540,8 +540,8 @@ static const struct wlcore_partition_set wl18xx_ptable[PART_TABLE_LEN] = {
                .mem3 = { .start = 0x00000000, .size  = 0x00000000 },
        },
        [PART_PHY_INIT] = {
-               /* TODO: use the phy_conf struct size here */
-               .mem  = { .start = 0x80926000, .size = 252 },
+               .mem  = { .start = 0x80926000,
+                         .size = sizeof(struct wl18xx_mac_and_phy_params) },
                .reg  = { .start = 0x00000000, .size = 0x00000000 },
                .mem2 = { .start = 0x00000000, .size = 0x00000000 },
                .mem3 = { .start = 0x00000000, .size = 0x00000000 },