summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ti/wl18xx/main.c
diff options
context:
space:
mode:
authorIdo Reis <idor@ti.com>2012-05-13 15:27:17 +0300
committerLuciano Coelho <coelho@ti.com>2012-06-07 18:10:48 +0300
commit4085f641e704b1ff1a60f62756f49281a181f707 (patch)
tree45cb76401d252bfefd164e478ec23f51ab0dc342 /drivers/net/wireless/ti/wl18xx/main.c
parent97511b15b1926337f90226b3cb735e52f2dc8a85 (diff)
wl18xx: fix PHY_INIT addresses mem size
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>
Diffstat (limited to 'drivers/net/wireless/ti/wl18xx/main.c')
-rw-r--r--drivers/net/wireless/ti/wl18xx/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ti/wl18xx/main.c b/drivers/net/wireless/ti/wl18xx/main.c
index c8d45f011c6..e030b1297a2 100644
--- a/drivers/net/wireless/ti/wl18xx/main.c
+++ b/drivers/net/wireless/ti/wl18xx/main.c
@@ -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 },