diff options
author | Arik Nemtsov <arik@wizery.com> | 2011-12-07 20:09:03 +0100 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2012-04-12 07:43:58 +0200 |
commit | 96e0c6837bb2db2f00d00f5295d0e9467e24a99f (patch) | |
tree | 5d88f167a14a1d33740963845a42efe3d32d3e8c /drivers/net/wireless/ti/wl12xx | |
parent | wlcore: add quirk to disable ELP (diff) | |
download | linux-96e0c6837bb2db2f00d00f5295d0e9467e24a99f.tar.xz linux-96e0c6837bb2db2f00d00f5295d0e9467e24a99f.zip |
wlcore/wl12xx: create per-chip-family private storage
This storage is allocated in wlcore_alloc_hw and freed in free_hw. The
size of the storage is determined by the 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/wl12xx')
-rw-r--r-- | drivers/net/wireless/ti/wl12xx/main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/wireless/ti/wl12xx/main.c b/drivers/net/wireless/ti/wl12xx/main.c index d24e49a0b820..e05a1cf750c1 100644 --- a/drivers/net/wireless/ti/wl12xx/main.c +++ b/drivers/net/wireless/ti/wl12xx/main.c @@ -655,12 +655,16 @@ static struct wlcore_ops wl12xx_ops = { .get_mac = wl12xx_get_mac, }; +struct wl12xx_priv { +}; + static int __devinit wl12xx_probe(struct platform_device *pdev) { struct wl1271 *wl; struct ieee80211_hw *hw; + struct wl12xx_priv *priv; - hw = wlcore_alloc_hw(); + hw = wlcore_alloc_hw(sizeof(*priv)); if (IS_ERR(hw)) { wl1271_error("can't allocate hw"); return PTR_ERR(hw); |