mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 11:40:19 -04:00
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>
This commit is contained in:
committed by
Luciano Coelho
parent
274c66cdcd
commit
9d1c973a7b
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user