summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ti/wl18xx
diff options
context:
space:
mode:
authorArik Nemtsov <arik@wizery.com>2012-05-10 09:13:14 (GMT)
committerLuciano Coelho <coelho@ti.com>2012-06-05 12:54:46 (GMT)
commit9d1c973a7b569652cea0ea00dc7ac409b08a8381 (patch)
tree3a36572b228ebf0bff76b12dd1d40d5d76f4deb1 /drivers/net/wireless/ti/wl18xx
parent274c66cdcd89654de276be871627181b192a6e30 (diff)
downloadlinux-fsl-qoriq-9d1c973a7b569652cea0ea00dc7ac409b08a8381.tar.xz
wl18xx: create per-chip-family private storage
Make use of the wlcore provided private storage in the 18xx low-level driver. Signed-off-by: Arik Nemtsov <arik@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/ti/wl18xx')
-rw-r--r--drivers/net/wireless/ti/wl18xx/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ti/wl18xx/main.c b/drivers/net/wireless/ti/wl18xx/main.c
index 6a487c8..b298e01 100644
--- a/drivers/net/wireless/ti/wl18xx/main.c
+++ b/drivers/net/wireless/ti/wl18xx/main.c
@@ -313,8 +313,9 @@ int __devinit wl18xx_probe(struct platform_device *pdev)
{
struct wl1271 *wl;
struct ieee80211_hw *hw;
+ struct wl18xx_priv *priv;
- hw = wlcore_alloc_hw(0);
+ hw = wlcore_alloc_hw(sizeof(*priv));
if (IS_ERR(hw)) {
wl1271_error("can't allocate hw");
return PTR_ERR(hw);