提交 9d1c973a 编写于 作者: A Arik Nemtsov 提交者: Luciano Coelho

wl18xx: create per-chip-family private storage

Make use of the wlcore provided private storage in the 18xx low-level
driver.
Signed-off-by: NArik Nemtsov <arik@wizery.com>
Signed-off-by: NLuciano Coelho <coelho@ti.com>
上级 274c66cd
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册