Commit c62fdce2 authored by Mike McCormack's avatar Mike McCormack Committed by Greg Kroah-Hartman

staging: rtl8192e: Pass priv to rtl8192_init

Signed-off-by: default avatarMike McCormack <mikem@ring3k.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 679a2494
...@@ -2416,9 +2416,10 @@ static short rtl8192_get_channel_map(struct r8192_priv *priv) ...@@ -2416,9 +2416,10 @@ static short rtl8192_get_channel_map(struct r8192_priv *priv)
return 0; return 0;
} }
static short rtl8192_init(struct net_device *dev) static short rtl8192_init(struct r8192_priv *priv)
{ {
struct r8192_priv *priv = ieee80211_priv(dev); struct net_device *dev = priv->ieee80211->dev;
memset(&(priv->stats),0,sizeof(struct Stats)); memset(&(priv->stats),0,sizeof(struct Stats));
rtl8192_init_priv_variable(priv); rtl8192_init_priv_variable(priv);
rtl8192_init_priv_lock(priv); rtl8192_init_priv_lock(priv);
...@@ -4655,7 +4656,7 @@ static int __devinit rtl8192_pci_probe(struct pci_dev *pdev, ...@@ -4655,7 +4656,7 @@ static int __devinit rtl8192_pci_probe(struct pci_dev *pdev,
} }
RT_TRACE(COMP_INIT, "Driver probe completed1\n"); RT_TRACE(COMP_INIT, "Driver probe completed1\n");
if(rtl8192_init(dev)!=0){ if (rtl8192_init(priv)!=0) {
RT_TRACE(COMP_ERR, "Initialization failed\n"); RT_TRACE(COMP_ERR, "Initialization failed\n");
goto fail; goto fail;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment