[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20100117151350.073381bc.randy.dunlap@oracle.com>
Date: Sun, 17 Jan 2010 15:13:50 -0800
From: Randy Dunlap <randy.dunlap@...cle.com>
To: Stephen Rothwell <sfr@...b.auug.org.au>,
Greg Kroah-Hartman <gregkh@...e.de>
Cc: linux-next@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>,
devel@...verdev.osuosl.org
Subject: [PATCH -next] staging/winbond: fix wbusb struct warnings/error
From: Randy Dunlap <randy.dunlap@...cle.com>
Fix winbond wbusb warnings:
drivers/staging/winbond/wbusb.c:68: warning: 'struct ieee80211_if_init_conf' declared inside parameter list
drivers/staging/winbond/wbusb.c:68: warning: its scope is only this definition or declaration, which is probably not what you want
drivers/staging/winbond/wbusb.c:72: error: dereferencing pointer to incomplete type
drivers/staging/winbond/wbusb.c:78: warning: 'struct ieee80211_if_init_conf' declared inside parameter list
drivers/staging/winbond/wbusb.c:284: warning: initialization from incompatible pointer type
drivers/staging/winbond/wbusb.c:285: warning: initialization from incompatible pointer type
Signed-off-by: Randy Dunlap <randy.dunlap@...cle.com>
---
drivers/staging/winbond/wbusb.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--- linux-next-20100111.orig/drivers/staging/winbond/wbusb.c
+++ linux-next-20100111/drivers/staging/winbond/wbusb.c
@@ -65,17 +65,17 @@ static void hal_set_beacon_period(struct
}
static int wbsoft_add_interface(struct ieee80211_hw *dev,
- struct ieee80211_if_init_conf *conf)
+ struct ieee80211_vif *conf)
{
struct wbsoft_priv *priv = dev->priv;
- hal_set_beacon_period(&priv->sHwData, conf->vif->bss_conf.beacon_int);
+ hal_set_beacon_period(&priv->sHwData, conf->>bss_conf.beacon_int);
return 0;
}
static void wbsoft_remove_interface(struct ieee80211_hw *dev,
- struct ieee80211_if_init_conf *conf)
+ struct ieee80211_vif *conf)
{
printk("wbsoft_remove interface called\n");
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists