summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ti/wl12xx
diff options
context:
space:
mode:
authorArik Nemtsov <arik@wizery.com>2011-12-07 21:09:03 +0200
committerLuciano Coelho <coelho@ti.com>2012-04-12 08:43:58 +0300
commit96e0c6837bb2db2f00d00f5295d0e9467e24a99f (patch)
tree5d88f167a14a1d33740963845a42efe3d32d3e8c /drivers/net/wireless/ti/wl12xx
parent441101f67818cf5aaba7081fb05c8604a55c0949 (diff)
downloadblackbird-op-linux-96e0c6837bb2db2f00d00f5295d0e9467e24a99f.tar.gz
blackbird-op-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.c6
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);
OpenPOWER on IntegriCloud